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-promise
API
const list = ;const queue = ;
All functions take either an args Array plus optional callback because operations with redis are asynchronous.
.push(hash)
Create new hash in list and return its id.
queue
.get(id)
Get hash by id.
queue
.has(id)
Return true if list set exists.
queue
.del(id)
Delete list set.
queue
Delete list set and hash:
queue
.move(id, list)
Atomically removes the set of the list stored at source, and pushes the set to the list stored at destination.
var other = ;queue