Skip to content

gnagel/node-memcached-ext

Repository files navigation

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

About

CSV & JSON parsing extension to Node-Memcached

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published