lithium\storage\cache\adapter\Memory::delete()
Implements
lithium\storage\cache\Adapter::delete()
Will attempt to remove specified keys from the user space cache.
Parameters
-
array
$keys
Keys to uniquely identify the cached items.
Returns
booleantrue
on successful delete, false
otherwise.
Source
public function delete(array $keys) {
foreach ($keys as $key) {
if (!isset($this->_cache[$key])) {
return false;
}
unset($this->_cache[$key]);
}
return true;
}