A simple Redis client.
package |
Default |
---|
__construct()
batch( $arg0, $arg1) : $this
array
callable
$this
close() : void
connect( $arg0) : $this
callable
$this
a reference to this, so the API can be used fluently
createClient( $arg0, $arg1) : \io\vertx\jphp\redis\client\Redis
This connection will use the default options which are connect to a standalone server on the default port on "localhost".
param $vertx [Vertx] param $address [SocketAddress] createClient($vertx, $address)
Connect to redis, the onConnect
will get the @see \io\vertx\jphp\redis\client\Redis instance.
param $vertx [Vertx] param $options [RedisOptions | array] createClient($vertx, $options)
Vertx
array | RedisOptions | SocketAddress
\io\vertx\jphp\redis\client\Redis
endHandler( $arg0) : $this
callable
$this
a reference to this, so the API can be used fluently
exceptionHandler( $arg0) : $this
callable
$this
a reference to this, so the API can be used fluently
fetch( $arg0) : $this
integer
$this
a reference to this, so the API can be used fluently
handler( $arg0) : $this
callable
$this
a reference to this, so the API can be used fluently
pause() : $this
While it's paused, no data will be sent to the data handler
.
$this
a reference to this, so the API can be used fluently
pipe() : \io\vertx\jphp\redis\client\Pipe<Response>
The stream will be resumed when the pipe will be wired to a WriteStream
.
\io\vertx\jphp\redis\client\Pipe
a pipe
pipeTo( $arg0, $arg1 = null) : void
param $dst [WriteStream
Pipe this ReadStream
to the WriteStream
.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler
will be
called with the result.
param $dst [WriteStream
WriteStream
callable
resume() : $this
If the ReadStream
has been paused, reading will recommence on it.
$this
a reference to this, so the API can be used fluently
send( $arg0, $arg1) : $this
Request
callable
$this
socketAddress() : \io\vertx\jphp\core\net\SocketAddress