Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 578 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 578 Bytes

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;
});