lithium\storage\cache\adapter\Redis::__call()

public method

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

mixed

Returns the result of the method call.

Source

	public function __call($method, $params = array()) {
		return call_user_func_array(array(&$this->connection, $method), $params);
	}