Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/meltingice/node-memcached

A Node.JS memcached interface
https://github.com/meltingice/node-memcached

Last synced: 24 days ago
JSON representation

A Node.JS memcached interface

Awesome Lists containing this project

README

        

About


node-memcached is a simple way to connect and interact with a memcached server using Node.JS.

How to Use



var m = require('./node-memcached');

m.connect('localhost', 11211, function() {
m.get('some_key', function(data) {
console.log(data);
});

m.set('diff_key', {some:'data'}, 43200, function() {
console.log('stored!');
});

m.increment('numeric_data', 2, function(new_val) {
console.log('incremented to ' + new_val);
});

m.delete('bad_key');
});

What Needs to be Done


* Lots of testing
* Error handling
* Addition of a few more memcached commands such as append, prepend, etc.