PHP Класс Predis\Collection\Iterator\CursorBasedIterator

Given their incremental nature with multiple fetches, these kind of iterators offer limited guarantees about the returned elements because the collection can change several times during the iteration process.
См. также: http://redis.io/commands/scan
Автор: Daniele Alessandri ([email protected])
Наследование: implements Iterator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$client
$count
$current
$cursor
$elements
$fetchmore
$match
$position
$valid

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

Метод Описание
__construct ( Predis\ClientInterface $client, string $match = null, integer $count = null )
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.
getScanOptions ( ) : array Returns an array of options for the SCAN command.
requiredCommand ( Predis\ClientInterface $client, string $commandID ) Ensures that the client 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 $match = null, integer $count = null )
$client Predis\ClientInterface Client connected to Redis.
$match string Pattern to match during the server-side iteration.
$count integer Hint used by Redis to compute the number of results per iteration.

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

public current ( )

executeCommand() абстрактный защищенный Метод

Fetches a new set of elements from the remote collection, effectively advancing the iteration process.
abstract 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 ( )

getScanOptions() защищенный Метод

Returns an array of options for the SCAN command.
protected getScanOptions ( ) : array
Результат array

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

public key ( )

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

public next ( )

requiredCommand() защищенный Метод

Ensures that the client 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

$cursor защищенное свойство

protected $cursor

$elements защищенное свойство

protected $elements

$fetchmore защищенное свойство

protected $fetchmore

$match защищенное свойство

protected $match

$position защищенное свойство

protected $position

$valid защищенное свойство

protected $valid