new Request()
Builder for REDIS requests that will be encoded according to the RESP protocol was introduced in Redis 1.2.
Which became the standard way for talking with the Redis server in Redis 2.0.
Redis protocol documentation states:
Clients send commands to a Redis server as a RESP Array of Bulk Strings.So all non String/Bulk types will be encoded to Bulk for convenience.
- Source:
Methods
arg(arg) → {Request}
Adds a boolean encoded to string
Parameters:
| Name | Type | Description |
|---|---|---|
arg |
boolean |
- Source:
Returns:
self
- Type
- Request
command() → {Command}
Get the Command that is to be used by this request.
- Source:
Returns:
the command.
- Type
- Command
nullArg() → {Request}
Adds a NULL encoded string
- Source:
Returns:
self
- Type
- Request