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.

package

Default

Methods

__construct

__construct() 

Adds a String argument using UTF8 character encoding

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)

Arguments

$arg0

Buffer | boolean | string | integer

$arg1

string

Response

$this

self

cmd

cmd( $arg0) : \io\vertx\jphp\redis\client\Request
static

Arguments

$arg0

Command

Response

\io\vertx\jphp\redis\client\Request

Get the Command that is to be used by this request.

command() : \io\vertx\jphp\redis\client\Command

Response

\io\vertx\jphp\redis\client\Command

the command.

Adds a NULL encoded string

nullArg() : $this

Response

$this

self