lendledger-cli
Version:
An app to execute all stellar transaction at command line
23 lines (14 loc) • 680 B
JavaScript
const store = require('node-persist');
store.init({
dir: '.cache/lendledger',
stringify: JSON.stringify,
parse: JSON.parse,
encoding: 'utf8',
logging: false, // can also be custom logging function
ttl: false, // ttl* [NEW], can be true for 24h default or a number in MILLISECONDS
expiredInterval: 1 * 60 * 1000, // every 1 minutes the process will clean-up the expired cache
// in some cases, you (or some other service) might add non-valid storage files to your
// storage dir, i.e. Google Drive, make this true if you'd like to ignore these files and not throw an error
forgiveParseErrors: false
});
module.exports.store = store;