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.
package |
Default |
---|
__construct()
arg( $arg0, $arg1 = null) : $this
param $arg [string] arg($arg)
Adds a String key argument
param $arg [Buffer] arg($arg)
Adds a long encoded to string
param $arg [integer] arg($arg)
Adds a boolean encoded to string
param $arg [boolean] arg($arg)
Adds a String using a specific character encoding argument
param $arg [string] param $enc [string] arg($arg, $enc)
Buffer | boolean | string | integer
string
$this
self
cmd( $arg0) : \io\vertx\jphp\redis\client\Request
command() : \io\vertx\jphp\redis\client\Command
\io\vertx\jphp\redis\client\Command
the command.
nullArg() : $this
$this
self