YahooArchive / ycb-lru

YCB with a cache
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

ycb-lru

Build Status

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