Methods

Constructor

__construct(\Zend\Cache\Storage\Adapter\Dba $storage, resource $handle, string $prefix) 

Parameters

$handle

resource

$prefix

string

Get current key, value or metadata.

current() : mixed

Exceptions

\Zend\Cache\Exception\RuntimeException

Returns

mixed

Get iterator mode

getMode() : int

Returns

intValue of IteratorInterface::CURRENT_AS_*

Get storage instance

getStorage() : \Zend\Cache\Storage\Adapter\Dba

Get current key

key() : string

Exceptions

\Zend\Cache\Exception\RuntimeException

Returns

string

Rewind the Iterator to the first element.

rewind() : void

Set iterator mode

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

Parameters

$mode

int

Returns

Checks if current position is valid

valid() : bool

Returns

bool

 Properties

 

The current internal key

$currentInternalKey : string | bool

 

The dba resource handle

$handle : resource

 

The iterator mode

$mode : int

 

The length of the namespace prefix

$prefixLength : int

 

The apc storage instance

$storage : \Zend\Cache\Storage\Adapter\Dba

 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