PHP Class Predis\Response\Iterator\MultiBulkIterator

This iterator does not support rewinding which means that the iteration, once consumed, cannot be restarted. Always make sure that the whole iteration is consumed (or dropped) to prevent protocol desynchronization issues.
Author: Daniele Alessandri ([email protected])
Inheritance: implements Iterator, implements Countable, implements Predis\Response\ResponseInterface
Afficher le fichier Open project: tillkruss/redis-object-cache

Protected Properties

Свойство Type Description
$current
$position
$size

Méthodes publiques

Méthode Description
count ( ) : integer Returns the number of items comprising the whole multibulk response.
current ( )
getPosition ( ) : integer Returns the current position of the iterator.
key ( )
next ( )
rewind ( )
valid ( )

Méthodes protégées

Méthode Description
getValue ( )

Method Details

count() public méthode

This method should be used instead of iterator_count() to get the size of the current multibulk response since the former consumes the iteration to count the number of elements, but our iterators do not support rewinding.
public count ( ) : integer
Résultat integer

current() public méthode

public current ( )

getPosition() public méthode

Returns the current position of the iterator.
public getPosition ( ) : integer
Résultat integer

getValue() abstract protected méthode

abstract protected getValue ( )

key() public méthode

public key ( )

next() public méthode

public next ( )

rewind() public méthode

public rewind ( )

valid() public méthode

public valid ( )

Property Details

$current protected_oe property

protected $current

$position protected_oe property

protected $position

$size protected_oe property

protected $size