lithium\storage\cache\adapter\XCache::delete()
Implements
lithium\storage\cache\Adapter::delete()
Will attempt to remove specified keys from the user space cache.
Note that this is not an atomic operation when using multiple keys.
Parameters
-
array
$keys
Keys to uniquely identify the cached items.
Returns
booleantrue
on successful delete, false
otherwise.
Source
public function delete(array $keys) {
if ($this->_config['scope']) {
$keys = $this->_addScopePrefix($this->_config['scope'], $keys);
}
foreach ($keys as $key) {
if (!xcache_unset($key)) {
return false;
}
}
return true;
}