Class ApcuIterator

Summary

Fully Qualified Name: Zend\Cache\Storage\Adapter\ApcuIterator
Implements: IteratorInterface

Description

Methods

Name Description Defined By
__construct() Constructor ApcuIterator
current() Get current key, value or metadata. ApcuIterator
getMode() Get iterator mode ApcuIterator
getStorage() Get storage instance ApcuIterator
key() Get current key ApcuIterator
next() Move forward to next element ApcuIterator
rewind() Rewind the Iterator to the first element. ApcuIterator
setMode() Set iterator mode ApcuIterator
valid() Checks if current position is valid ApcuIterator

Method Details

__construct()

Constructor

Parameter Name Type Description
$storage \Apcu
$baseIterator \BaseApcuIterator
$prefix string

Returns:

current()

Get current key, value or metadata.

Returns: mixed

getMode()

Get iterator mode

Returns: int Value of IteratorInterface::CURRENT_AS_*

getStorage()

Get storage instance

Returns: \Apcu

key()

Get current key

Returns: string

next()

Move forward to next element

Returns: void

rewind()

Rewind the Iterator to the first element.

Returns: void

setMode()

Set iterator mode

Parameter Name Type Description
$mode int

Returns: \ApcuIterator Provides a fluent interface

valid()

Checks if current position is valid

Returns: bool

Top