Zend\Cache\Storage\Adapter\AdapterOptions
Unless otherwise marked, all options in this class affect all adapters.
Synopsis
class AdapterOptions
extends AbstractOptions
{
- // members
- protected null|Filesystem $adapter;
- protected string $keyPattern;
- protected string $namespace;
- protected bool $readable;
- protected int|float $ttl;
- protected bool $writable;
- // Inherited members from AbstractOptions
- protected bool $__strictMode__;
- // methods
- public AdapterOptions setAdapter()
- public AdapterOptions setKeyPattern()
- public string getKeyPattern()
- public AdapterOptions setNamespace()
- public string getNamespace()
- public AbstractAdapter setReadable()
- public bool getReadable()
- public AdapterOptions setTtl()
- public float getTtl()
- public AdapterOptions setWritable()
- public bool getWritable()
- protected void triggerOptionEvent()
- protected void normalizeTtl()
- // Inherited methods from AbstractOptions
- public void __construct()
- public AbstractOptions setFromArray()
- public array toArray()
- public void __set()
- public mixed __get()
- public bool __isset()
- public void __unset()
Hierarchy
Extends
Extended by
- Zend\Cache\Storage\Adapter\RedisOptions
- Zend\Cache\Storage\Adapter\MemoryOptions
- Zend\Cache\Storage\Adapter\ApcOptions
- Zend\Cache\Storage\Adapter\WinCacheOptions
- Zend\Cache\Storage\Adapter\XCacheOptions
- Zend\Cache\Storage\Adapter\MemcachedOptions
- Zend\Cache\Storage\Adapter\SessionOptions
- Zend\Cache\Storage\Adapter\FilesystemOptions
- Zend\Cache\Storage\Adapter\DbaOptions
- Zend\Cache\Storage\Adapter\MemcacheOptions
Members
protected
- $__strictMode__
—
Zend\Stdlib\bool
We use the __ prefix to avoid collisions with properties in user-implementations. - $adapter
—
Zend\Cache\Storage\Adapter\null|Filesystem
The adapter using these options - $keyPattern
—
string
Validate key against pattern - $namespace
—
string
Namespace option - $readable
—
Zend\Cache\Storage\Adapter\bool
Readable option - $ttl
—
Zend\Cache\Storage\Adapter\int|float
TTL option - $writable
—
Zend\Cache\Storage\Adapter\bool
Writable option
Methods
protected
- normalizeTtl() — Validates and normalize a TTL.
- triggerOptionEvent() — Triggers an option event if this options instance has a connection to an adapter implements EventsCapableInterface.
public
- getKeyPattern() — Get key pattern
- getNamespace() — Get namespace
- getReadable() — If reading data from cache enabled.
- getTtl() — Get time to live.
- getWritable() — If writing data to cache enabled.
- setAdapter() — Adapter using this instance
- setKeyPattern() — Set key pattern
- setNamespace() — Set namespace.
- setReadable() — Enable/Disable reading data from cache.
- setTtl() — Set time to live.
- setWritable() — Enable/Disable writing data to cache.