Skip to content

hashcube/memcache-q-promise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

node memcached with q promises.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%