Zend\Cache\Storage\Adapter\DbaIterator
Synopsis
class DbaIterator
implements
IteratorInterface
{
- // members
- protected Apc $storage;
- protected int $mode;
- protected resource $handle;
- protected int $prefixLength;
- protected string|bool $currentInternalKey;
- // methods
- public void __construct()
- public Dba getStorage()
- public int getMode()
- public ApcIterator setMode()
- public mixed current()
- public string key()
- public void next()
- public bool valid()
- public void rewind()
Hierarchy
Implements
Constants
Name | Value |
---|---|
CURRENT_AS_SELF | 0 |
CURRENT_AS_KEY | 1 |
CURRENT_AS_VALUE | 2 |
CURRENT_AS_METADATA | 3 |
Members
protected
- $currentInternalKey
—
Zend\Cache\Storage\Adapter\string|bool
The current internal key - $handle
—
resource
The dba resource handle - $mode
—
int
The iterator mode - $prefixLength
—
int
The length of the namespace prefix - $storage
—
Zend\Cache\Storage\Adapter\Apc
The apc storage instance
Methods
public
- __construct() — Constructor
- current() — Get current key, value or metadata.
- getMode() — Get iterator mode
- getStorage() — Get storage instance
- key() — Get current key
- next() — Move forward to next element
- rewind() — Rewind the Iterator to the first element.
- setMode() — Set iterator mode
- valid() — Checks if current position is valid