Optional
options: Partial<IMQOptions>Optional
mode: IMQMode = IMQMode.BOTHClears queue data in redis;
Gracefully destroys this queue
Returns true if publisher mode is enabled on this queue, false otherwise.
Returns true if worker mode is enabled on this queue, false otherwise.
Publishes a message to this queue subscription channel for currently subscribed clients.
If toName specified will publish to PubSub with a different name. This can be used to implement broadcasting some messages to other subscribers on other PubSub channels.
Optional
toName: stringSends a given message to a given queue (by name)
Optional
delay: numberOptional
errorHandler: (err: Error) => voidInitializes and starts current queue routines
Stops current queue routines
Creates a subscription channel over redis and sets up channel data read handler
Closes subscription channel
Class RedisQueue Implements simple messaging queue over redis.