lithium\storage\cache\adapter\Memory::write()
Implements
lithium\storage\cache\Adapter::write()
Write values to the cache.
Parameters
-
array
$keys
Key/value pairs with keys to uniquely identify the to-be-cached item.
-
mixed
$data
The value to be cached.
-
null|string
$expiry
Unused.
Returns
booleantrue
on successful write, false
otherwise.
Source
public function write(array $keys, $expiry = null) {
foreach ($keys as $key => &$value) {
$this->_cache[$key] = $value;
}
return true;
}