These are options specific to the APC adapter

package Default
inherited_from \Zend\Cache\Storage\Adapter\AdapterOptions

 Methods

Constructor

__construct(array|\Traversable|null $options = null
Inherited

Parameters

$options

array\Traversablenull

Get a configuration property

__get(string $key) : mixed
Inherited
see
inherited_from \Zend\Stdlib\ParameterObjectInterface::__get()

Parameters

$key

string

Exceptions

\Zend\Stdlib\Exception\BadMethodCallException

Returns

mixed

Test if a configuration property is null

__isset(string $key) : boolean
Inherited
see
inherited_from \Zend\Stdlib\ParameterObjectInterface::__isset()

Parameters

$key

string

Returns

boolean

Set a configuration property

__set(string $key, mixed $value) : void
Inherited
see
inherited_from \Zend\Stdlib\ParameterObjectInterface::__set()

Parameters

$key

string

$value

mixed

Exceptions

\Zend\Stdlib\Exception\BadMethodCallException

Set a configuration property to NULL

__unset(string $key) : void
Inherited
see
inherited_from \Zend\Stdlib\ParameterObjectInterface::__unset()

Parameters

$key

string

Exceptions

\Zend\Stdlib\Exception\InvalidArgumentException

Get key pattern

getKeyPattern() : string
Inherited

Returns

string

Get namespace

getNamespace() : string
Inherited

Returns

string

If reading data from cache enabled.

getReadable() : boolean
Inherited

Returns

boolean

Get the session container

getSessionContainer() : null | \Zend\Session\Container

Returns

null\Zend\Session\Container

Get time to live.

getTtl() : float
Inherited

Returns

float

If writing data to cache enabled.

getWritable() : boolean
Inherited

Returns

boolean

Adapter using this instance

setAdapter(\Zend\Cache\Storage\StorageInterface|null $adapter = null) : \Zend\Cache\Storage\Adapter\AdapterOptions
Inherited

Parameters

$adapter

\Zend\Cache\Storage\StorageInterfacenull

Returns

\Zend\Cache\Storage\Adapter\AdapterOptions

Set one or more configuration properties

setFromArray(array|\Traversable|\Zend\Stdlib\AbstractOptions $options) : \Zend\Stdlib\AbstractOptions
Inherited

Parameters

$options

array\Traversable\Zend\Stdlib\AbstractOptions

Exceptions

\Zend\Stdlib\Exception\InvalidArgumentException

Returns

\Zend\Stdlib\AbstractOptionsProvides fluent interface

Set key pattern

setKeyPattern(null|string $keyPattern) : \Zend\Cache\Storage\Adapter\AdapterOptions
Inherited

Parameters

$keyPattern

nullstring

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

\Zend\Cache\Storage\Adapter\AdapterOptions

Set namespace.

setNamespace(string $namespace) : \Zend\Cache\Storage\Adapter\AdapterOptions
Inherited

Parameters

$namespace

string

Returns

\Zend\Cache\Storage\Adapter\AdapterOptions

Enable/Disable reading data from cache.

setReadable(boolean $readable) : \Zend\Cache\Storage\Adapter\AbstractAdapter
Inherited

Parameters

$readable

boolean

Returns

\Zend\Cache\Storage\Adapter\AbstractAdapter

Set the session container

setSessionContainer(null|\Zend\Session\Container $sessionContainer = null) : \Zend\Cache\Storage\Adapter\SessionOptions

Parameters

$sessionContainer

null\Zend\Session\Container

Returns

\Zend\Cache\Storage\Adapter\SessionOptions

Set time to live.

setTtl(integer|float $ttl) : \Zend\Cache\Storage\Adapter\AdapterOptions
Inherited

Parameters

$ttl

integerfloat

Returns

\Zend\Cache\Storage\Adapter\AdapterOptions

Enable/Disable writing data to cache.

setWritable(boolean $writable) : \Zend\Cache\Storage\Adapter\AdapterOptions
Inherited

Parameters

$writable

boolean

Returns

\Zend\Cache\Storage\Adapter\AdapterOptions

Cast to array

toArray() : array
Inherited

Returns

array

Validates and normalize a TTL.

normalizeTtl(integer|float $ttl) : void
Inherited

Parameters

$ttl

integerfloat

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Triggers an option event if this options instance has a connection to an adapter implements EventsCapableInterface.

triggerOptionEvent(string $optionName, mixed $optionValue) : void
Inherited

Parameters

$optionName

string

$optionValue

mixed

 Properties

 

We use the __ prefix to avoid collisions with properties in user-implementations.

$__strictMode__ : boolean

Default

true
 

The adapter using these options

$adapter : null | \Zend\Cache\Storage\StorageInterface

Default

 

Validate key against pattern

$keyPattern : string

Default

''
 

Namespace option

$namespace : string

Default

'zfcache'
 

Readable option

$readable : boolean

Default

true
 

The session container

$sessionContainer : null | \Zend\Session\Container

Default

null
 

TTL option

$ttl : integer | float

Default

0
 

Writable option

$writable : boolean

Default

true