lithium\storage\cache\adapter\Memory::clear()
Overrides
lithium\storage\cache\Adapter::clear()
Clears entire cache by flushing it. All cache keys using the configuration but without honoring the scope are removed.
The operation will continue to remove keys even if removing
one single key fails, clearing thoroughly as possible. In any case
this method will return true
.
Returns
booleanAlways returns true
.
Source
public function clear() {
foreach ($this->_cache as $key => &$value) {
unset($this->_cache[$key]);
}
return true;
}