list-redis
Create a list of hashes sorted by id backend by redis (useful to create queues with data).
Installation
nodejs:
$ npm install list-redis
API
var list = ;var queue = ;
All functions take either an args Array plus optional callback because operations with redis are asynchronous.
.add(hash, callback)
Create new hash in list and return its id.
queue
Hashes are optional:
queue
.get(id, callback)
Get hash by id.
queue;
.has(id, callback)
Return true if list set exists.
queue;
.get(id, callback)
Delete list set.
queue;
Delete list set and hash:
queue;