LocalStorage with optional json file cache
npm install node-localcacheModule, allows to save application data between launches in json data file. Api most liked as LocalStorage API
``js
var LocalCache = require('node-localcache');
cache = new LocalCache('.cache/filetocache.json');
cache.setItem('key', 'value');
cache.getItem('key'); // value
`
js
new LocalCache(fileName, skipFileCaching);
`
- fileName - (optional with skipFileCaching: true) Path to cache file, also used as store id
- skipFileCaching - (optional) disable file cache, default false`