Ycb-lru读取 LRU 缓存
Ycb-lru 是一个带缓存的 YCB。它允许你使用 ycb
和自动缓存你在 LRU 缓存中读取操作的结果。
示例:
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
评论