ApcIterator
in package
implements
IteratorInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $baseIterator : APCIterator
- The base APCIterator instance
- $mode : int
- The iterator mode
- $prefixLength : int
- The length of the namespace prefix
- $storage : Apc
- The apc storage instance
- __construct() : mixed
- Constructor
- current() : mixed
- Get current key, value or metadata.
- getMode() : int
- Get iterator mode
- getStorage() : Apc
- Get storage instance
- key() : string
- Get current key
- next() : void
- Move forward to next element
- rewind() : void
- Rewind the Iterator to the first element.
- setMode() : ApcIterator
- Set iterator mode
- valid() : bool
- Checks if current position is valid
Properties
$baseIterator
The base APCIterator instance
protected
APCIterator
$baseIterator
$mode
The iterator mode
protected
int
$mode
= \Zend\Cache\Storage\IteratorInterface::CURRENT_AS_KEY
$prefixLength
The length of the namespace prefix
protected
int
$prefixLength
$storage
The apc storage instance
protected
Apc
$storage
Methods
__construct()
Constructor
public
__construct(Apc $storage, APCIterator $baseIterator, string $prefix) : mixed
Parameters
- $storage : Apc
- $baseIterator : APCIterator
- $prefix : string
Return values
mixed —current()
Get current key, value or metadata.
public
current() : mixed
Return values
mixed —getMode()
Get iterator mode
public
getMode() : int
Return values
int —Value of IteratorInterface::CURRENT_AS_*
getStorage()
Get storage instance
public
getStorage() : Apc
Return values
Apc —key()
Get current key
public
key() : string
Return values
string —next()
Move forward to next element
public
next() : void
Return values
void —rewind()
Rewind the Iterator to the first element.
public
rewind() : void
Return values
void —setMode()
Set iterator mode
public
setMode(int $mode) : ApcIterator
Parameters
- $mode : int
Return values
ApcIterator —Provides a fluent interface
valid()
Checks if current position is valid
public
valid() : bool