Skip to content

chantalgo/memcached-promisify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memcached-promisify-timestamp

Fork of memcached-promisify Memcached promisified wrapper library that allows setting for timestamps in expiration date

installation

npm install memcached-promisify-timestamp --save

usage

const Cache = require('memcached-promisify-timestamp');

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

About

Memcached promisified wrapper library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published