PHP Class Predis\Response\Iterator\MultiBulk

Author: Daniele Alessandri ([email protected])
Inheritance: extends MultiBulkIterator
Mostra file Open project: tillkruss/redis-object-cache Class Usage Examples

Public Methods

Method Description
__construct ( Predis\Connection\NodeConnectionInterface $connection, integer $size )
__destruct ( ) Handles the synchronization of the client with the Redis protocol when the garbage collector kicks in (e.g. when the iterator goes out of the scope of a foreach or it is unset).
drop ( boolean $disconnect = false ) Drop queued elements that have not been read from the connection either by consuming the rest of the multibulk response or quickly by closing the underlying connection.

Protected Methods

Method Description
getValue ( ) : mixed Reads the next item of the multibulk response from the connection.

Method Details

__construct() public method

public __construct ( Predis\Connection\NodeConnectionInterface $connection, integer $size )
$connection Predis\Connection\NodeConnectionInterface Connection to Redis.
$size integer Number of elements of the multibulk response.

__destruct() public method

Handles the synchronization of the client with the Redis protocol when the garbage collector kicks in (e.g. when the iterator goes out of the scope of a foreach or it is unset).
public __destruct ( )

drop() public method

Drop queued elements that have not been read from the connection either by consuming the rest of the multibulk response or quickly by closing the underlying connection.
public drop ( boolean $disconnect = false )
$disconnect boolean Consume the iterator or drop the connection.

getValue() protected method

Reads the next item of the multibulk response from the connection.
protected getValue ( ) : mixed
return mixed