package Default
inherited_from \Zend\Cache\Pattern\CallbackCache

 Methods

Calling a method of the entity.

__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

Get a static property

__get(string $name) : mixed
see

Parameters

$name

string

Returns

mixed

Is a static property exists.

__isset(string $name) : boolean

Parameters

$name

string

Returns

boolean

Set a static property

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

Parameters

$name

string

$value

mixed

Unset a static property

__unset(string $name) : void

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) : \Zend\Cache\Pattern\ClassCache
inherited_from \Zend\Cache\Pattern\CallbackCache::setOptions()

Parameters

$options

\Zend\Cache\Pattern\PatternOptions

Exceptions

\Zend\Cache\Exception\InvalidArgumentException if missing 'class' or 'storage' options

Returns

\Zend\Cache\Pattern\ClassCache

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