Property | Type | Description | |
---|---|---|---|
$client | |||
$count | |||
$current | |||
$cursor | |||
$elements | |||
$fetchmore | |||
$match | |||
$position | |||
$valid |
Method | Description | |
---|---|---|
__construct ( Predis\ClientInterface $client, string $match = null, integer $count = null ) | ||
current ( ) | ||
key ( ) | ||
next ( ) | ||
rewind ( ) | ||
valid ( ) |
Method | Description | |
---|---|---|
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. |
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. |
abstract protected executeCommand ( ) : array | ||
return | array |
protected extractNext ( ) |
protected fetch ( ) |
protected getScanOptions ( ) : array | ||
return | array |
protected requiredCommand ( Predis\ClientInterface $client, string $commandID ) | ||
$client | Predis\ClientInterface | Client connected to Redis. |
$commandID | string | Command ID. |