The response received from the REDIS server. Redis responses can have several representations:
Due to the dynamic nature the response object will try to cast the received response to the desired type. A special case should be noted that multi responses are also handled by the response object as it implements the iterable interface. So in this case constructs like for loops on the response will give you access to the underlying elements.
| package |
Default |
|---|
__construct()
get( $arg0) : \io\vertx\jphp\redis\client\Response
param $index [integer] the required index. get($index)
Get this multi response value at a string key. Note that REDIS does not support strings as keys but by convention it encodes hashes in lists where index i is the key, and index i+1 is the value.
param $key [string] the required key. get($key)
string | integer
\io\vertx\jphp\redis\client\ResponseResponse value.
getKeys() : array
arraythe set of keys.
size() : integer
integerthe size of the multi.
toBoolean() : boolean
booleanboolean value.
toBuffer() : \io\vertx\jphp\core\buffer\Buffer
toByte() : integer
integerbyte value.
toInteger() : integer
integerint value.
toLong() : integer
integerlong value.
toShort() : integer
integershort value.
toString() : string
stringstring value
type() : string
stringthe type.