Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Namespacing for node-redis

tree: 83a59f3eb5

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.textile

redis-keyspace

Similar in use to Ruby’s redis-namespace for node.

Install

npm install redis redis-keyspace  # will also install the redis adapter
or
npm install hiredis redis redis-keyspace  # will also install the high performance redis C adapter

Use

Use this library just as you would node_redis

redis_keyspace = require('redis-keyspace')
client = redis_keyspace.createClient()
client.set('KOO', 'DOO', (err, reply) -> console.log( 'set reply: ' + reply + " err: " + err ))
client.get('KOO', (err, reply) -> console.log( 'get reply: ' + reply + " err: " + err ))

Initialization

With options:

client = redis_keyspace.createClient(6380, '192.168.168.100', {'prefix': 'your_keyspace'})

Incompatible Commands

Thanks

This is a CoffeeScript spinoff of node-redis-namespace from Aaron Schlesinger.

Something went wrong with that request. Please try again.