PHP 클래스 Predis\Response\Iterator\MultiBulk

저자: Daniele Alessandri ([email protected])
상속: extends MultiBulkIterator
파일 보기 프로젝트 열기: tillkruss/redis-object-cache 1 사용 예제들

공개 메소드들

메소드 설명
__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