category Zend
package Zend_Cache
subpackage Storage

 Methods

Constructor

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

Parameters

$keys

array

Count number of items

count() : int

Returns

int

Get current key, value or metadata.

current() : mixed

Returns

mixed

Get iterator mode

getMode() : int

Returns

intValue of IteratorInterface::CURRENT_AS_*

Get storage instance

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

Get current key

key() : string

Returns

string

Rewind the Iterator to the first element.

rewind() : void

Set iterator mode

setMode(int $mode) : \Zend\Cache\Storage\Adapter\KeyListIterator

Parameters

$mode

int

Returns

Checks if current position is valid

valid() : bool

Returns

bool

 Properties

 

Number of keys

$count : int

 

Keys to iterate over

$keys : string[]

 

The iterator mode

$mode : int

 

Current iterator position

$position : int

 

The storage instance

$storage : \Zend\Cache\Storage\StorageInterface

 Constants

 

CURRENT_AS_KEY

CURRENT_AS_KEY 
Inherited

inherited_from \Zend\Cache\Storage\IteratorInterface::CURRENT_AS_KEY
   

CURRENT_AS_SELF

CURRENT_AS_SELF 
Inherited

inherited_from \Zend\Cache\Storage\IteratorInterface::CURRENT_AS_SELF
 

CURRENT_AS_VALUE

CURRENT_AS_VALUE 
Inherited

inherited_from \Zend\Cache\Storage\IteratorInterface::CURRENT_AS_VALUE