A really simple Redis Client for Node.js

npm install nodredis
3 downloads in the last day
3 downloads in the last week
16 downloads in the last month


Node Redis client, really simple and small

How to Install

npm install nodredis

How to Use


var nodredis = require('nodredis');

var cl = new nodredis.connect();
console.log(['is it connected?', cl.connected]);
cl.on("connect", function () {
        console.log(['is it connected?', cl.connected]);
cl.on("end",function () {
      console.log("connection ended");

Normal Operation

cl.cmd('setex', 'test', 120, "One Two Three");
cl.cmd('get', 'test', console.log);

Binary Data

cl.cmdbin('set', 'test', Buffer('c0c1c2c3c400010203', 'hex'));
cl.cmdbin('get', 'test', console.log);
npm loves you