node-cache-store
A in-memory cache system.
- Key/Value store.
- You can use multi cache space like namespace.
Installation
npm install node-cache-store
Usage
Simple usage
var Cache = Cache;var cache = ; // Set a cachecache; // get a cachecache; // delete a cachecache ;
Multi namespace usage
var CacheStore = CacheStore;var cache1 = CacheStore ;cache1 ;
Options
var opt = expire: 3600 ; // Cache expire time(sec). Defalt is no limit(-1). expiredLoopTerm: 3600 // interval for delete expired data(sec). Defalt is 3600 ; ;var cache = opt ;var cache1 = CacheStore ;
Support
Open an issue on GitHub.