Class CallbackCache

Summary

Fully Qualified Name: Zend\Cache\Pattern\CallbackCache
Extends: AbstractPattern

Description

Methods

Name Description Defined By
__call() function call handler CallbackCache
call() Call the specified callback or get the result from cache CallbackCache
generateKey() Generate a unique key in base of a key representing the callback part and a key representing the arguments part. CallbackCache
getOptions() Get all pattern options AbstractPattern
setOptions() Set options CallbackCache

Method Details

__call()

function call handler

Parameter Name Type Description
$function string Function
$args array Function

Returns: mixed

call()

Call the specified callback or get the result from cache

Parameter Name Type Description
$callback callable A
$args array Callback

Returns: mixed Result

generateKey()

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

Parameter Name Type Description
$callback callable A
$args array Callback

Returns: string

getOptions()

Get all pattern options

Returns: \PatternOptions

setOptions()

Set options

Parameter Name Type Description
$options \PatternOptions

Returns: \CallbackCache Provides a fluent interface

Top