PHP Class Neos\Cache\Frontend\CacheEntryIterator

Inheritance: implements Iterator
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$backend Neos\Cache\Backend\IterableBackendInterface
$frontend Neos\Cache\Frontend\FrontendInterface

Public Methods

Method Description
__construct ( Neos\Cache\Frontend\FrontendInterface $frontend, Neos\Cache\Backend\IterableBackendInterface $backend, integer $chunkSize = null ) Constructs this Iterator
current ( ) : mixed Returns the data of the current cache entry pointed to by the cache entry iterator.
key ( ) : string Returns the identifier of the current cache entry pointed to by the cache entry iterator.
next ( ) : void Move forward to the next cache entry
rewind ( ) : void Rewind the cache entry iterator to the first element
valid ( ) : boolean Checks if current position of the cache entry iterator is valid

Method Details

__construct() public method

Constructs this Iterator
public __construct ( Neos\Cache\Frontend\FrontendInterface $frontend, Neos\Cache\Backend\IterableBackendInterface $backend, integer $chunkSize = null )
$frontend Neos\Cache\Frontend\FrontendInterface Frontend of the cache to iterate over
$backend Neos\Cache\Backend\IterableBackendInterface Backend of the cache
$chunkSize integer Determines the number of entries fetched by the backend at once (for future use)

current() public method

Returns the data of the current cache entry pointed to by the cache entry iterator.
public current ( ) : mixed
return mixed

key() public method

Returns the identifier of the current cache entry pointed to by the cache entry iterator.
public key ( ) : string
return string

next() public method

Move forward to the next cache entry
public next ( ) : void
return void

rewind() public method

Rewind the cache entry iterator to the first element
public rewind ( ) : void
return void

valid() public method

Checks if current position of the cache entry iterator is valid
public valid ( ) : boolean
return boolean TRUE if the current element of the iterator is valid, otherwise FALSE

Property Details

$backend protected property

protected IterableBackendInterface,Neos\Cache\Backend $backend
return Neos\Cache\Backend\IterableBackendInterface

$frontend protected property

protected FrontendInterface,Neos\Cache\Frontend $frontend
return Neos\Cache\Frontend\FrontendInterface