CSV & JSON parsing extension to Node-Memcached
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
README.md
memcached_ext.js
memcached_ext_csv.js
memcached_ext_json.js
package.json

README.md

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