0.1.1 • Published 8 years ago

dreambox v0.1.1

Weekly downloads
9
License
MIT
Repository
github
Last release
8 years ago

Dreambox

Available strategies are listed in here

For e.g. memory strategy,

$ npm install catbox-memory --save

Then in your code,

const cache = new Dreambox('memory', { segment: 'january', ttl: 10000 });
await cache.set('hurray', { hiphip: 'Yay!' });
const stored = await cache.get('hurray');
console.log(stored);
// { item: { hiphip: 'Yay!' }, stored: 1463699257301, ttl: 98000 }

Credits

Copyright © 2016 Dhi Aurrahman