package Default
inherited_from \Zend\Cache\Pattern\CallbackCache

 Methods

Class method call handler

__call(string $method, array $args) : mixed
inherited_from \Zend\Cache\Pattern\CallbackCache::__call()

Parameters

$method

string

Method name to call

$args

array

Method arguments

Exceptions

\Zend\Cache\Exception\RuntimeException
\Exception

Returns

mixed

function call handler

__call(string $function, array $args) : mixed
Inherited

Parameters

$function

string

Function name to call

$args

array

Function arguments

Exceptions

\Zend\Cache\Exception\RuntimeException
\Exception

Returns

mixed

Reading data from properties.

__get(string $name) : mixed

NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn't exist in real. If so it calls __get.

see

Parameters

$name

string

Returns

mixed

Handle invoke calls

__invoke() : mixed
see

Returns

mixed

Checking existing properties.

__isset(string $name) : boolean

NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn't exist in real. If so it calls __get.

see

Parameters

$name

string

Returns

boolean

Writing data to properties.

__set(string $name, mixed $value) : void

NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn't exist in real. If so it calls set and removes cached data of previous get and __isset calls.

see

Parameters

$name

string

$value

mixed

Handle casting to string

__toString() : string
see

Returns

string

Unseting a property.

__unset(string $name) : void

NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn't exist in real. If so it removes previous cached isset and get calls.

see

Parameters

$name

string

Call and cache a class method

call(string $method, array $args = array()) : mixed
inherited_from \Zend\Cache\Pattern\CallbackCache::call()

Parameters

$method

string

Method name to call

$args

array

Method arguments

Exceptions

\Zend\Cache\Exception\RuntimeException
\Exception

Returns

mixed

Call the specified callback or get the result from cache

call(callable $callback, array $args = array()) : mixed
Inherited

Parameters

$callback

callable

A valid callback

$args

array

Callback arguments

Exceptions

\Zend\Cache\Exception\RuntimeException if invalid cached data
\Exception

Returns

mixedResult

Generate a unique key in base of a key representing the callback part and a key representing the arguments part.

generateKey(string $method, array $args = array()) : string
inherited_from \Zend\Cache\Pattern\CallbackCache::generateKey()

Parameters

$method

string

The method

$args

array

Callback arguments

Exceptions

\Zend\Cache\Exception\RuntimeException

Returns

string

Generate a unique key in base of a key representing the callback part and a key representing the arguments part.

generateKey(callable $callback, array $args = array()) : string
Inherited

Parameters

$callback

callable

A valid callback

$args

array

Callback arguments

Exceptions

\Zend\Cache\Exception\RuntimeException
\Zend\Cache\Exception\InvalidArgumentException

Returns

string

Get all pattern options

getOptions() : \Zend\Cache\Pattern\PatternOptions
Inherited
inherited_from \Zend\Cache\Pattern\PatternInterface::getOptions()

Returns

\Zend\Cache\Pattern\PatternOptions

Set options

setOptions(\Zend\Cache\Pattern\PatternOptions $options) : void
inherited_from \Zend\Cache\Pattern\CallbackCache::setOptions()

Parameters

$options

\Zend\Cache\Pattern\PatternOptions

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Set pattern options

setOptions(\Zend\Cache\Pattern\PatternOptions $options) : \Zend\Cache\Pattern\AbstractPattern
Inherited
inherited_from \Zend\Cache\Pattern\PatternInterface::setOptions()

Parameters

$options

\Zend\Cache\Pattern\PatternOptions

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

\Zend\Cache\Pattern\AbstractPattern

Generate a unique key of the argument part.

generateArgumentsKey(array $args) : string
Inherited

Parameters

$args

array

Exceptions

\Zend\Cache\Exception\RuntimeException

Returns

string

Generate a unique key in base of a key representing the callback part and a key representing the arguments part.

generateCallbackKey(callable $callback, array $args = array()) : string
inherited_from \Zend\Cache\Pattern\CallbackCache::generateCallbackKey()

Parameters

$callback

callable

A valid callback

$args

array

Callback arguments

Exceptions

\Zend\Cache\Exception\RuntimeException

Returns

string

Generate a unique key in base of a key representing the callback part and a key representing the arguments part.

generateCallbackKey(callable $callback, array $args) : string
Inherited

Parameters

$callback

callable

A valid callback

$args

array

Callback arguments

Exceptions

\Zend\Cache\Exception\RuntimeException if callback not serializable
\Zend\Cache\Exception\InvalidArgumentException if invalid callback

Returns

string

 Properties

 

$options

$options : \Zend\Cache\Pattern\PatternOptions

Default