Zend Framework
3.0
|
Unless otherwise marked, all options in this class affect all adapters. More...
Public Member Functions | |
setAdapter (StorageInterface $adapter=null) | |
Adapter using this instance. | |
setKeyPattern ($keyPattern) | |
Set key pattern. | |
getKeyPattern () | |
Get key pattern. | |
setNamespace ($namespace) | |
Set namespace. | |
getNamespace () | |
Get namespace. | |
setReadable ($readable) | |
Enable/Disable reading data from cache. | |
getReadable () | |
If reading data from cache enabled. | |
setTtl ($ttl) | |
Set time to live. | |
getTtl () | |
Get time to live. | |
setWritable ($writable) | |
Enable/Disable writing data to cache. | |
getWritable () | |
If writing data to cache enabled. | |
toArray () | |
Cast to array. | |
setFromArray ($options) | |
{} | |
Public Member Functions inherited from AbstractOptions | |
__construct ($options=null) | |
Constructor. | |
setFromArray ($options) | |
Set one or more configuration properties. | |
toArray () | |
Cast to array. | |
__set ($key, $value) | |
Set a configuration property. | |
__get ($key) | |
Get a configuration property. | |
__isset ($key) | |
Test if a configuration property is null. | |
__unset ($key) | |
Set a configuration property to NULL. | |
Protected Member Functions | |
triggerOptionEvent ($optionName, $optionValue) | |
Triggers an option event if this options instance has a connection to an adapter implements EventsCapableInterface. | |
normalizeTtl (&$ttl) | |
Validates and normalize a TTL. | |
Protected Attributes | |
$__prioritizedProperties__ = [] | |
$adapter | |
$keyPattern = '' | |
$namespace = 'zfcache' | |
$readable = true | |
$ttl = 0 | |
$writable = true | |
Protected Attributes inherited from AbstractOptions | |
$__strictMode__ = true | |
Unless otherwise marked, all options in this class affect all adapters.
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.
|
protected |
Validates and normalize a TTL.
int | float | $ttl |
Exception\InvalidArgumentException |
setAdapter | ( | StorageInterface | $adapter = null | ) |
setFromArray | ( | $options | ) |
{}
NOTE: This method was overwritten just to support prioritized properties https://github.com/zendframework/zf2/issues/6381
array | Traversable | AbstractOptions | $options |
Exception\InvalidArgumentException |
setKeyPattern | ( | $keyPattern | ) |
Set key pattern.
string | $keyPattern |
Exception\InvalidArgumentException |
setNamespace | ( | $namespace | ) |
setReadable | ( | $readable | ) |
setTtl | ( | $ttl | ) |
setWritable | ( | $writable | ) |
toArray | ( | ) |
Cast to array.
|
protected |
Triggers an option event if this options instance has a connection to an adapter implements EventsCapableInterface.
string | $optionName | |
mixed | $optionValue |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |