new RedisQueue(client)
Create the queue
Parameters:
Name | Type | Description |
---|---|---|
client |
object | Redis client |
Properties:
Name | Type | Description |
---|---|---|
empty |
boolean | Queue is empty flag |
Methods
-
clear()
-
Clear the queue
-
add(command [, params])
-
Queue Redis command for transaction
Parameters:
Name Type Argument Description command
string Command params
Array <optional>
Command parameters