memcache-promise
v0.0.1
Published
Q Promises for memcached
Downloads
1,637
Maintainers
Readme
QMemcached
QPromises wrapper for node-memcached node-memcached
Example:
Memcached set
qmemcached = new qMemcached("localhost:11211");
qmemcached
.set("foo", "bar", 1000)
.then(function(res){
console.log("Memcached updated:", res);
})
.fail(function(e){
throw e;
});
Memcache get
qmemcached = new qMemcached("localhost:11211");
qmemcached
.get("foo")
.then(function(value){
console.log(value);
})
.fail(function(e){
throw e;
});