memcached-promisify
Memcached promisified wrapper library
installation
npm install memcached-promisify --save
usage
const Cache = require; const cache = new cache.set .then((result) => { // successful set... }, => );
options
The following can be passed when instantiating:
- an object with a cache key prefix and the cache host URL, both optional
- memcached options (see https://www.npmjs.com/package/memcached#options)
const Cache = require; // uses cache host at localhost:11211 by defaultconst cache1 = new Cache; // specific cache hostconst cache2 = new Cache;
tests
Run the tests
grunt test