memcached-promisify

2.0.0 • Public • Published

memcached-promisify

Memcached promisified wrapper library

installation

npm install memcached-promisify --save

usage

const Cache = require('memcached-promisify');
 
const cache = new Cache();
 
cache.set('foo''bar', 20)
    .then((result) => {
        // successful set...
    }, (err) => {
        // something happened...
    });

options

The following can be passed when instantiating:

const Cache = require('memcached-promisify');
 
// uses cache host at localhost:11211 by default
const cache1 = new Cache('keyPrefix''prefix' });
 
// specific cache host
const cache2 = new Cache('keyPrefix''prefix''cacheHost''other.host.com' });

tests

Run the tests

grunt test

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    2,537
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    2,537
  • 1.0.3
    2
  • 1.0.2
    3
  • 1.0.1
    2

Package Sidebar

Install

npm i memcached-promisify

Weekly Downloads

821

Version

2.0.0

License

ISC

Last publish

Collaborators

  • chriswood