rebound - a redis backed fixed length queue for node.js
This is a redis backed fixed length queue for node.js. It allows you to set a max size, pass in a redis configuration, and start adding items to the queue.
This is how you can use it:
In your package.json:
"dependencies": "node-rebound": "0.1.0"
Usage
var Rebound = ; queue = port: 6379 host: 'localhost' namespace: 'rebound-test-queue' size: 5 ;
You can also just give an already bootstrapped-instance of node-redis:
var redis = ; var Rebound = ; var client = redis; queue = size: 5 redis: client namespace: 'rebound-test-queue' ;
Then you can start adding items to the queue
// Add a single item to the queue queue; ... // Add multiple items to the queue queue;