lithium\storage\cache\adapter\Redis::__call()
Dispatches a not-found method to the connection object. That way, one can easily use a custom method on the adapter. If you want to know, what methods are available, have a look at the documentation of phpredis.
Cache::adapter('redis')->methodName($argument);
One use-case might be to query possible keys, e.g.
Cache::adapter('redis')->keys('*');
Parameters
-
string
$method
Name of the method to call.
-
array
$params
Parameter list to use when calling $method.
Returns
mixedReturns the result of the method call.
Links
Source
public function __call($method, $params = []) {
return call_user_func_array([&$this->connection, $method], $params);
}