1.3.0 • Published 11 years ago

memcached_ext v1.3.0

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

node-memcached-ext

CSV & JSON parsing extension to Node-Memcached

Get/Set CSV

Set a non-empty CSV array

var memcached = require('memcached_ext');
var client    = new memcached('127.0.0.1:11211');

// Set the CSV
client.set_csv('my_array', ['a', 'b', 'c', 'd'], 0);

// ...

// Get the CSV
client.get_csv('my_array', function(error, array) {
	// array is ['a', 'b', 'c', 'd']
});

Set a empty CSV array

var memcached = require('memcached_ext');
var client    = new memcached('127.0.0.1:11211');

// Set the CSV
client.set_csv('my_array', [], 0);

// ...

// Get the CSV
client.get_csv('my_array', function(error, array) {
	// array is []
});
1.3.0

11 years ago

1.2.0

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago