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
Mostrar archivo Open project: tillkruss/redis-object-cache

Protected Properties

Property Type Description
$current
$position
$size

Public Methods

Method 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 ( )

Protected Methods

Method Description
getValue ( )

Method Details

count() public method

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
return integer

current() public method

public current ( )

getPosition() public method

Returns the current position of the iterator.
public getPosition ( ) : integer
return integer

getValue() abstract protected method

abstract protected getValue ( )

key() public method

public key ( )

next() public method

public next ( )

rewind() public method

public rewind ( )

valid() public method

public valid ( )

Property Details

$current protected_oe property

protected $current

$position protected_oe property

protected $position

$size protected_oe property

protected $size