Hier
provide hierarchical read from different data resources, e.g, db, cache, file system...
// hierarchical read from memoryStore, fileStorehier
api
Store interface
every get/set value operations in this module, rely on this Store interface
so if you want to create your own Store class
, be sure to inherit fron Store
example
var hier= ;var Store= hierinterface;var util= ;var Q= ;var {var self= this;selfstores= {};Store;}util;VirtualStoreprototype {var self= this;return Q};VirtualStoreprototype {var self= this;return Q};VirtualStoreprototype {delete selfstoreskey;};
chain
hierarchical read from memoryStore
, fileStore
read key
in order from memoryStore
, fileStore
hier
License
MIT