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\Response
Response value.
getKeys() : array
array
the set of keys.
size() : integer
integer
the size of the multi.
toBoolean() : boolean
boolean
boolean value.
toBuffer() : \io\vertx\jphp\core\buffer\Buffer
toByte() : integer
integer
byte value.
toInteger() : integer
integer
int value.
toLong() : integer
integer
long value.
toShort() : integer
integer
short value.
toString() : string
string
string value
type() : string
string
the type.