Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Node Redis client, really simple and small
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
nodredis.js
package.json
test.js
test2.js

README.md

"nodredis"

Node Redis client, really simple and small

How to Install

npm install nodredis

How to Use

Connection

var nodredis = require('nodredis');

var cl = new nodredis.connect();
console.log(['is it connected?', cl.connected]);
cl.on("connect", function () {
      console.log('Connected');
        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);
Something went wrong with that request. Please try again.