PHP 클래스 Predis\Collection\Iterator\ListKey

This iterator tries to emulate the behaviour of cursor-based iterators based on the SCAN-family of commands introduced in Redis <= 2.8, meaning that due to its incremental nature with multiple fetches it can only offer limited guarantees on the returned elements because the collection can change several times (trimmed, deleted, overwritten) during the iteration process.
저자: Daniele Alessandri ([email protected])
상속: implements Iterator
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$client
$count
$current
$elements
$fetchmore
$key
$position
$valid

공개 메소드들

메소드 설명
__construct ( Predis\ClientInterface $client, string $key, integer $count = 10 )
current ( )
key ( )
next ( )
rewind ( )
valid ( )

보호된 메소드들

메소드 설명
executeCommand ( ) : array Fetches a new set of elements from the remote collection, effectively advancing the iteration process.
extractNext ( ) Extracts next values for key() and current().
fetch ( ) Populates the local buffer of elements fetched from the server during the iteration.
requiredCommand ( Predis\ClientInterface $client, string $commandID ) Ensures that the client instance supports the specified Redis command required to fetch elements from the server to perform the iteration.
reset ( ) Resets the inner state of the iterator.

메소드 상세

__construct() 공개 메소드

public __construct ( Predis\ClientInterface $client, string $key, integer $count = 10 )
$client Predis\ClientInterface Client connected to Redis.
$key string Redis list key.
$count integer Number of items retrieved on each fetch operation.

current() 공개 메소드

public current ( )

executeCommand() 보호된 메소드

Fetches a new set of elements from the remote collection, effectively advancing the iteration process.
protected executeCommand ( ) : array
리턴 array

extractNext() 보호된 메소드

Extracts next values for key() and current().
protected extractNext ( )

fetch() 보호된 메소드

Populates the local buffer of elements fetched from the server during the iteration.
protected fetch ( )

key() 공개 메소드

public key ( )

next() 공개 메소드

public next ( )

requiredCommand() 보호된 메소드

Ensures that the client instance supports the specified Redis command required to fetch elements from the server to perform the iteration.
protected requiredCommand ( Predis\ClientInterface $client, string $commandID )
$client Predis\ClientInterface Client connected to Redis.
$commandID string Command ID.

reset() 보호된 메소드

Resets the inner state of the iterator.
protected reset ( )

rewind() 공개 메소드

public rewind ( )

valid() 공개 메소드

public valid ( )

프로퍼티 상세

$client 보호되어 있는 프로퍼티

protected $client

$count 보호되어 있는 프로퍼티

protected $count

$current 보호되어 있는 프로퍼티

protected $current

$elements 보호되어 있는 프로퍼티

protected $elements

$fetchmore 보호되어 있는 프로퍼티

protected $fetchmore

$key 보호되어 있는 프로퍼티

protected $key

$position 보호되어 있는 프로퍼티

protected $position

$valid 보호되어 있는 프로퍼티

protected $valid