A collection of utilities for node-redis.
A collection of utilities for node-redis, such as a hashing frontend and queue interface.
18:35 < godsflaw> it's the node bits one needs for using redis as a job processing queue
To install with npm:
npm install redis_util
Insert a key/value pair into the appropriate server after hasing a key.
var key = 'test';var redis_hash = host: '10.0.0.1' host: '10.0.0.2';redis_hash0;
Insert data into a queue and wait for a response:
var cluster = host: '10.0.0.1' host: '10.0.0.2';var queue = 'test' cluster;queue;
Run a worker and return uppercase version of payload.
var worker = 'test' cluster;worker;