Class ApcIterator

Summary

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

Description

Methods

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

Method Details

__construct()

Constructor

Parameter Name Type Description
$storage \Apc
$baseIterator \BaseApcIterator
$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: \Apc

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: \ApcIterator Provides a fluent interface

valid()

Checks if current position is valid

Returns: bool

Top