ycb-lru

0.0.1 • Public • Published

ycb-lru

This allows you to use ycb and automatically caches the results of reads that you have already done in an LRU cache.

Install

npm i ycb-lru

Example

var Ycb = require('ycb-lru');
var appConfig = require('./config');
var dimensions = require('./dimensions');
var bundle = dimensions.concat(appConfig);
 
var ycb = Ycb(bundle);
 
var config = ycb.read({}); // config is master settings
 
config = ycb.read({environment: 'prod'}); // config is now set to prod

Methods

  • read(context)

Readme

Keywords

Package Sidebar

Install

npm i ycb-lru

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • mk