Fully Qualified Name: | Laminas\Cache\Pattern\CallbackCache |
Extends: | AbstractPattern |
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 |
function call handler
Parameter Name | Type | Description |
---|---|---|
$function | string | Function |
$args | array | Function |
Returns: mixed
Call the specified callback or get the result from cache
Parameter Name | Type | Description |
---|---|---|
$callback | callable | A |
$args | array | Callback |
Returns: mixed Result
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
Get all pattern options
Returns: \PatternOptions
Set options
Parameter Name | Type | Description |
---|---|---|
$options | \PatternOptions |
Returns: \CallbackCache Provides a fluent interface