(mixed) call ($callable, $arguments = array())
Browse code
| $callable |
A PHP callable
|
| $arguments |
An array of arguments to pass to the callable
|
Calls a cacheable function or method (or not if there is already a cache
for it).
Arguments of this method are read with func_get_args. So it doesn't appear in the function definition.
The first argument can be any PHP callable:
$cache->call('functionName', array($arg1, $arg2)); $cache->call(array($object, 'methodName'), array($arg1, $arg2));
returns The result of the function/method