package Default

 Methods

Constructor

__construct(\Zend\Cache\Storage\StorageInterface $storage, array $keys) 

Parameters

$storage

\Zend\Cache\Storage\StorageInterface

$keys

array

Count number of items

count() : integer

Returns

integer

Get current key, value or metadata.

current() : mixed

Returns

mixed

Get iterator mode

getMode() : integer
inherited_from \Zend\Cache\Storage\IteratorInterface::getMode()

Returns

integerValue of IteratorInterface::CURRENT_AS_*

Get storage instance

getStorage() : \Zend\Cache\Storage\StorageInterface
inherited_from \Zend\Cache\Storage\IteratorInterface::getStorage()

Returns

\Zend\Cache\Storage\StorageInterface

Get current key

key() : string

Returns

string

Move forward to next element

next() : void

Rewind the Iterator to the first element.

rewind() : void

Set iterator mode

setMode(integer $mode) : \Zend\Cache\Storage\Adapter\KeyListIterator
inherited_from \Zend\Cache\Storage\IteratorInterface::setMode()

Parameters

$mode

integer

Returns

\Zend\Cache\Storage\Adapter\KeyListIteratorFluent interface

Checks if current position is valid

valid() : boolean

Returns

boolean

 Properties

 

Number of keys

$count : integer

Default

 

Keys to iterate over

$keys : array<mixed,string>

Default

 

The iterator mode

$mode : integer

Default

\Zend\Cache\Storage\IteratorInterface::CURRENT_AS_KEY
 

Current iterator position

$position : integer

Default

0
 

The storage instance

$storage : \Zend\Cache\Storage\StorageInterface

Default