liftcache

1.0.0 • Public • Published

lift cache

var agent = function(resource,done) {     
    var err = null;
    var val = 'value_to_save';
    done(err, val);
});

var collection = liftcache({
    path: '../cache', 
    agent: agent
});

var lift = collection.lift;

// usage

lift('somekey',function(err,val) console.log(val); });

Package Sidebar

Install

npm i liftcache

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • kelcon