Extends
lithium\core\Object
Read value(s) from the cache.
This adapter method supports multi-key reads. By specifying `$key` as an
array of key names, this adapter will attempt to return an array of data
containing key/value pairs of the requested data.
Parameters
- string|array $key The key to uniquely identify the cached item.
Returns
closure Function returning cached value on successful read, `false` otherwise.Source
public function read($key) {
return function($self, $params) {
return apc_fetch($params['key']);
};
}