38. Class

38.1. Zend\Cache\Storage\Adapter\KeyListIterator

38.1.1. Methods

38.1.1.1. __construct

__construct()

Constructor

Parameters:
  • StorageInterface
  • array

38.1.1.2. getStorage

getStorage()

Get storage instance

Return type:StorageInterface

38.1.1.3. getMode

getMode()

Get iterator mode

Return type:int Value of IteratorInterface::CURRENT_AS_*

38.1.1.4. setMode

setMode()

Set iterator mode

Parameters:int
Return type:KeyListIterator Fluent interface

38.1.1.5. current

current()

Get current key, value or metadata.

Return type:mixed

38.1.1.6. key

key()

Get current key

Return type:string

38.1.1.7. valid

valid()

Checks if current position is valid

Return type:bool

38.1.1.9. rewind

rewind()

Rewind the Iterator to the first element.

Return type:void

38.1.1.10. count

count()

Count number of items

Return type:int