PHP Класс Predis\Response\Iterator\MultiBulk

Автор: Daniele Alessandri ([email protected])
Наследование: extends MultiBulkIterator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
getValue ( ) : mixed Reads the next item of the multibulk response from the connection.

Описание методов

__construct() публичный Метод

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() публичный Метод

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() публичный Метод

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() защищенный Метод

Reads the next item of the multibulk response from the connection.
protected getValue ( ) : mixed
Результат mixed