Zend\Cache\Storage\Capabilities
Synopsis
class Capabilities
{
- // members
- protected StorageInterface $storage;
- protected stdClass $marker;
- protected null|Capabilities $baseCapabilities;
- protected null|bool $expiredRead;
- protected null|int $maxKeyLength;
- protected null|int $minTtl;
- protected null|int $maxTtl;
- protected null|bool $namespaceIsPrefix;
- protected null|string $namespaceSeparator;
- protected null|bool $staticTtl;
- protected null|array $supportedDatatypes;
- protected null|array $supportedMetadata;
- protected null|int $ttlPrecision;
- protected null|bool $useRequestTime;
- // methods
- public void __construct()
- public StorageInterface getAdapter()
- public array getSupportedDatatypes()
- public Capabilities setSupportedDatatypes()
- public array getSupportedMetadata()
- public Capabilities setSupportedMetadata()
- public int getMinTtl()
- public Capabilities setMinTtl()
- public int getMaxTtl()
- public Capabilities setMaxTtl()
- public bool getStaticTtl()
- public Capabilities setStaticTtl()
- public float getTtlPrecision()
- public Capabilities setTtlPrecision()
- public bool getUseRequestTime()
- public Capabilities setUseRequestTime()
- public bool getExpiredRead()
- public Capabilities setExpiredRead()
- public int getMaxKeyLength()
- public Capabilities setMaxKeyLength()
- public bool getNamespaceIsPrefix()
- public Capabilities setNamespaceIsPrefix()
- public string getNamespaceSeparator()
- public Capabilities setNamespaceSeparator()
- protected mixed getCapability()
- protected Capabilities setCapability()
Members
protected
- $baseCapabilities
—
Zend\Cache\Storage\null|Capabilities
Base capabilities - $expiredRead
—
Zend\Cache\Storage\null|bool
Expire read - $marker
—
stdClass
A marker to set/change capabilities - $maxKeyLength
—
Zend\Cache\Storage\null|int
Max. key length - $maxTtl
—
Zend\Cache\Storage\null|int
Max. TTL (0 means infinite) - $minTtl
—
Zend\Cache\Storage\null|int
Min. TTL (0 means items never expire) - $namespaceIsPrefix
—
Zend\Cache\Storage\null|bool
Namespace is prefix - $namespaceSeparator
—
Zend\Cache\Storage\null|string
Namespace separator - $staticTtl
—
Zend\Cache\Storage\null|bool
Static ttl - $storage
—
Zend\Cache\Storage\StorageInterface
The storage instance - $supportedDatatypes
—
Zend\Cache\Storage\null|array
Supported datatypes - $supportedMetadata
—
Zend\Cache\Storage\null|array
Supported metdata - $ttlPrecision
—
Zend\Cache\Storage\null|int
TTL precision - $useRequestTime
—
Zend\Cache\Storage\null|bool
Use request time
Methods
protected
- getCapability() — Get a capability
- setCapability() — Change a capability
public
- __construct() — Constructor
- getAdapter() — Get the storage adapter
- getExpiredRead() — Get if expired items are readable
- getMaxKeyLength() — Get maximum key lenth
- getMaxTtl() — Get maximum supported time-to-live
- getMinTtl() — Get minimum supported time-to-live
- getNamespaceIsPrefix() — Get if namespace support is implemented as prefix
- getNamespaceSeparator() — Get namespace separator if namespace is implemented as prefix
- getStaticTtl() — Is the time-to-live handled static (on write) or dynamic (on read)
- getSupportedDatatypes() — Get supported datatypes
- getSupportedMetadata() — Get supported metadata
- getTtlPrecision() — Get time-to-live precision
- getUseRequestTime() — Get use request time
- setExpiredRead() — Set if expired items are readable
- setMaxKeyLength() — Set maximum key length
- setMaxTtl() — Set maximum supported time-to-live
- setMinTtl() — Set minimum supported time-to-live
- setNamespaceIsPrefix() — Set if namespace support is implemented as prefix
- setNamespaceSeparator() — Set the namespace separator if namespace is implemented as prefix
- setStaticTtl() — Set if the time-to-live handled static (on write) or dynamic (on read)
- setSupportedDatatypes() — Set supported datatypes
- setSupportedMetadata() — Set supported metadata
- setTtlPrecision() — Set time-to-live precision
- setUseRequestTime() — Set use request time