0.0.1 • Published 10 years ago

ycb-lru v0.0.1

Weekly downloads
8
License
-
Repository
github
Last release
10 years ago

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)