redis-keyspace v0.4.9
h1. redis-keyspace
h3. Similar in use to Ruby's "redis-namespace":https://github.com/defunkt/redis-namespace for node.
h2. Install
bc. 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
h2. Use
p. Use this library just as you would "node_redis":https://github.com/mranney/node_redis
bc. 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 ))
h3. Initialization
p. With options:
bc. client = redis_keyspace.createClient(6380, '192.168.168.100', {'prefix': 'your_keyspace'})
h3. Incompatible Commands
h3. Thanks
p. This is a CoffeeScript spinoff of "node-redis-namespace":https://github.com/arschles/node-redis-namespace from "Aaron Schlesinger":https://github.com/arschles.