Skip to content
A Node.JS memcached interface
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.textile
node-memcached.js

README.textile

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.
Something went wrong with that request. Please try again.