CacheEntryIterator
class CacheEntryIterator implements Iterator (View source)
An iterator for cache entries
Properties
protected FrontendInterface | $frontend | ||
protected IterableBackendInterface | $backend |
Methods
Constructs this Iterator
Returns the data of the current cache entry pointed to by the cache entry iterator.
Move forward to the next cache entry
Returns the identifier of the current cache entry pointed to by the cache entry iterator.
Checks if current position of the cache entry iterator is valid
Rewind the cache entry iterator to the first element
Details
__construct(FrontendInterface $frontend, IterableBackendInterface $backend)
Constructs this Iterator
mixed
current()
Returns the data of the current cache entry pointed to by the cache entry iterator.
void
next()
Move forward to the next cache entry
string
key()
Returns the identifier of the current cache entry pointed to by the cache entry iterator.
bool
valid()
Checks if current position of the cache entry iterator is valid
void
rewind()
Rewind the cache entry iterator to the first element