package Default

 Methods

Constructor

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

Parameters

$storage

\Zend\Cache\Storage\StorageInterface

$marker

\stdClass

$capabilities

array

$baseCapabilities

null\Zend\Cache\Storage\Capabilities

Get the storage adapter

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

Returns

\Zend\Cache\Storage\StorageInterface

Get if expired items are readable

getExpiredRead() : boolean

Returns

boolean

Get maximum key lenth

getMaxKeyLength() : integer

Returns

integer-1 means unknown, 0 means infinite

Get maximum supported time-to-live

getMaxTtl() : integer

Returns

integer0 means infinite

Get minimum supported time-to-live

getMinTtl() : integer

Returns

integer0 means items never expire

Get if namespace support is implemented as prefix

getNamespaceIsPrefix() : boolean

Returns

boolean

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() : boolean

Returns

boolean

Get supported datatypes

getSupportedDatatypes() : array

Returns

array

Get time-to-live precision

getTtlPrecision() : float

Returns

float

Get use request time

getUseRequestTime() : boolean

Returns

boolean

Set if expired items are readable

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

Parameters

$marker

\stdClass

$flag

boolean

Returns

\Zend\Cache\Storage\CapabilitiesFluent interface

Set maximum key length

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

Parameters

$marker

\stdClass

$maxKeyLength

integer

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

\Zend\Cache\Storage\CapabilitiesFluent interface

Set maximum supported time-to-live

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

Parameters

$marker

\stdClass

$maxTtl

integer

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

\Zend\Cache\Storage\CapabilitiesFluent interface

Set minimum supported time-to-live

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

Parameters

$marker

\stdClass

$minTtl

integer

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

\Zend\Cache\Storage\CapabilitiesFluent interface

Set if namespace support is implemented as prefix

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

Parameters

$marker

\stdClass

$flag

boolean

Returns

\Zend\Cache\Storage\CapabilitiesFluent interface

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

\Zend\Cache\Storage\CapabilitiesFluent interface

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

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

Parameters

$marker

\stdClass

$flag

boolean

Returns

\Zend\Cache\Storage\CapabilitiesFluent interface

Set supported datatypes

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

Parameters

$marker

\stdClass

$datatypes

array

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

\Zend\Cache\Storage\CapabilitiesFluent interface

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

\Zend\Cache\Storage\CapabilitiesFluent interface

Set use request time

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

Parameters

$marker

\stdClass

$flag

boolean

Returns

\Zend\Cache\Storage\CapabilitiesFluent interface

Get a capability

getCapability(string $property, mixed $default = null) : 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

\Zend\Cache\Storage\CapabilitiesFluent interface

 Properties

 

Base capabilities

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

Default

 

Expire read

$expiredRead : null | boolean

Default

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

Default

 

Max. key length

$maxKeyLength : null | integer

Default

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

 

Max. TTL (0 means infinite)

$maxTtl : null | integer

Default

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

 

Min. TTL (0 means items never expire)

$minTtl : null | integer

Default

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 | boolean

Default

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

Default

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

 

Static ttl

$staticTtl : null | boolean

Default

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

Default

 

Supported datatypes

$supportedDatatypes : null | array

Default

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

   

TTL precision

$ttlPrecision : null | integer

Default

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 | boolean

Default

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