kyew
Message queue system written in Node.js and backed by Redis
Install
$ npm i kyew
Usage
const Kyew = ; const kyew = url: 'redis://localhost:6379/1';
API
new Kyew([options])
options
Type: Object
url
Type: String
A redis url e.g. redis://localhost:6379/1
If you have redis-server
running on the same machine as node, then the defaults for port and host are probably fine and you don't need to supply any redis url.
.pushMessage(options)
Add a message to the queue.
options
Type: Object
qname
Type: String
message
Type: Object
kyew ;
.popMessage(options)
Remove a message from the queue.
options
Type: Object
qname
Type: String
id
Type: String
Remove the latest message from the queue.
kyew ;
Remove a specific message (by id) from the queue.
kyew ;
.getMessage(options)
Return a message (by id) from the queue. Can be used to check if a specific message exists in the queue.
options
Type: Object
qname
Type: String
id
Type: String
kyew ;