Methods

Constructor

__construct(\Zend\Cache\Storage\StorageInterface $storage, \stdClass $marker, array $capabilities, \Zend\Cache\Storage\Capabilities $baseCapabilities) 

Parameters

$marker

\stdClass

$capabilities

array

$baseCapabilities

null\Zend\Cache\Storage\Capabilities

Get the storage adapter

getAdapter() : \Zend\Cache\Storage\StorageInterface

Get if expired items are readable

getExpiredRead() : bool

Returns

bool

Get maximum key lenth

getMaxKeyLength() : int

Returns

int-1 means unknown, 0 means infinite

Get maximum supported time-to-live

getMaxTtl() : int

Returns

int0 means infinite

Get minimum supported time-to-live

getMinTtl() : int

Returns

int0 means items never expire

Get if namespace support is implemented as prefix

getNamespaceIsPrefix() : bool

Returns

bool

Get namespace separator if namespace is implemented as prefix

getNamespaceSeparator() : string

Returns

string

Is the time-to-live handled static (on write) or dynamic (on read)

getStaticTtl() : bool

Returns

bool

Get supported datatypes

getSupportedDatatypes() : array

Returns

array

Get time-to-live precision

getTtlPrecision() : float

Returns

float

Get use request time

getUseRequestTime() : bool

Returns

bool

Set if expired items are readable

setExpiredRead(\stdClass $marker, bool $flag) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$flag

bool

Returns

Set maximum key length

setMaxKeyLength(\stdClass $marker, int $maxKeyLength) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$maxKeyLength

int

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set maximum supported time-to-live

setMaxTtl(\stdClass $marker, int $maxTtl) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$maxTtl

int

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set minimum supported time-to-live

setMinTtl(\stdClass $marker, int $minTtl) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$minTtl

int

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set if namespace support is implemented as prefix

setNamespaceIsPrefix(\stdClass $marker, bool $flag) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$flag

bool

Returns

Set the namespace separator if namespace is implemented as prefix

setNamespaceSeparator(\stdClass $marker, string $separator) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$separator

string

Returns

Set if the time-to-live handled static (on write) or dynamic (on read)

setStaticTtl(\stdClass $marker, bool $flag) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$flag

bool

Returns

Set supported datatypes

setSupportedDatatypes(\stdClass $marker, array $datatypes) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$datatypes

array

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set time-to-live precision

setTtlPrecision(\stdClass $marker, float $ttlPrecision) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$ttlPrecision

float

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set use request time

setUseRequestTime(\stdClass $marker, bool $flag) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$flag

bool

Returns

Get a capability

getCapability(string $property, mixed $default) : mixed

Parameters

$property

string

$default

mixed

Returns

mixed

Change a capability

setCapability(\stdClass $marker, string $property, mixed $value) : \Zend\Cache\Storage\Capabilities

Parameters

$marker

\stdClass

$property

string

$value

mixed

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

 Properties

 

Base capabilities

$baseCapabilities : null | \Zend\Cache\Storage\Capabilities

 

Expire read

$expiredRead : null | bool

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

 

A marker to set/change capabilities

$marker : \stdClass

 

Max.

$maxKeyLength : null | int

key length

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

 

Max.

$maxTtl : null | int

TTL (0 means infinite)

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

 

Min.

$minTtl : null | int

TTL (0 means items never expire)

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

 

Namespace is prefix

$namespaceIsPrefix : null | bool

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

 

Namespace separator

$namespaceSeparator : null | string

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

 

Static ttl

$staticTtl : null | bool

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

 

The storage instance

$storage : \Zend\Cache\Storage\StorageInterface

 

Supported datatypes

$supportedDatatypes : null | array

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

   

TTL precision

$ttlPrecision : null | int

If it's NULL the capability isn't set and the getter returns the base capability or the default value.

 

Use request time

$useRequestTime : null | bool

If it's NULL the capability isn't set and the getter returns the base capability or the default value.