node-cacher-promise
Cache results of target function (if function return results in promise)
This module change name to node-cacher-promise and move to repository to https://github.com/ria-com/node-co-cache-wrapper
example
Add cache cache opportunity for simple generator - testGenerator:
var Q = cacher = ; var { return Q;}; ; { console;}
simple test
Start testing module:
$ cd node-cache-wrapper$ npm install$ npm test
config
co-cacher use config module. Example of config (./config/default.js):
moduleexports = // https://github.com/3rd-Eden/node-memcached memcached: servers: 'localhost:11211' // You can either use: String, Array, Object options: poolSize: 20 cache: expires: 120 // Default cache expires in seconds storage: 'memcached' key: prefix: 'cw_' crc32: false ;
roadmap
- Add redis storage support