A simple local memory cache via an associative array support .set() .get()
npm install assoc-cache
var cache = require('assoc-cache');
// usage
cache.set('foo', 'bar');
cache.get('foo', function(value){console.log(value)});
Which should print
bar
- stores a value
- callback value or
undefined