1383. Class

1383.1. Zend\Cache\Pattern\CallbackCache

1383.1.1. Methods

1383.1.1.1. setOptions

setOptions()

Set options

Parameters:PatternOptions
Return type:CallbackCache
Throws :ExceptionInvalidArgumentException if missing storage option

1383.1.1.2. call

call()

Call the specified callback or get the result from cache

Parameters:
  • callable – A valid callback
  • array – Callback arguments
Return type:

mixed Result

Throws :

ExceptionRuntimeException if invalid cached data

Throws :

Exception

1383.1.1.3. __call

__call()

function call handler

Parameters:
  • string – Function name to call
  • array – Function arguments
Return type:

mixed

Throws :

ExceptionRuntimeException

Throws :

Exception

1383.1.1.4. generateKey

generateKey()

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

Parameters:
  • callable – A valid callback
  • array – Callback arguments
Return type:

string

Throws :

ExceptionRuntimeException

Throws :

ExceptionInvalidArgumentException

1383.1.1.5. generateCallbackKey

generateCallbackKey()

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

Parameters:
  • callable – A valid callback
  • array – Callback arguments
Throws ExceptionRuntimeException:
 

if callback not serializable

Throws ExceptionInvalidArgumentException:
 

if invalid callback

Return type:

string

1383.1.1.6. generateArgumentsKey

generateArgumentsKey()

Generate a unique key of the argument part.

Parameters:array
Throws ExceptionRuntimeException:
 
Return type:string