PHP Class Predis\Response\Iterator\MultiBulk

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

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

__construct() public méthode

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 méthode

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 méthode

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 méthode

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