noredis
This is extremely experimental stuff
This is a simple "shared storage" for nodejs cluster without redis-like daemon.
Features
- set/get/del/exists/incr/decr/incrby/decrby/keys
- hset/hget/hdel/hexists/hincrby/hlen/hkeys/hvals/hgetall
- echo/flushall/flushdb
- TODO: ....
- see also redis command reference for supported commands
Install
npm install noredis
or
npm install git@github.com:iolo/node-noredis.git
How to Use(with cluster)
- do
require('noredis')
before fork the first worker. - use noredis in workers.
- that's all folks.
var cluster = noredis = ; // NOTE: before the first fork! if cluster ... cluster; ... else ... noredis; noredis;
- see also examples/cluster.js
How to Use(without cluster)
- simply
require('noredis')
and use it. - that's all ;)
var noredis = ; ...noredis;noredis;
- see also examples/nocluster.js