nodejs-redis
v0.0.9
Published
Externs for node_redis https://github.com/mranney/node_redis. Major.minor numbers match the node_redis npm version. Patch version is only for this library (i.e. patch version doesn't match the backing node_redis version
Downloads
27
Readme
Haxe Node.js bindings for Redis
Haxe bindings for the Node.js Redis client https://github.com/mranney/node_redis.
Usage:
var redisClient = RedisClient.createClient(6379, "192.168.59.103");
var key = "TESTKEY1_" + Math.floor(Math.random() * 100000);
var value = "value1";
redisClient.set(key, value, function(err, success) {
if (err != null) {
trace('Err: ' + err);
} else {
redisClient.get(key, function(err, result) {
if (err != null) {
trace('Err: ' + err);
} else {
trace('Success: ' + (result == value));
redisClient.quit();
}
});
}
});