lithium\storage\cache\adapter\XCache::delete()

public method

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

boolean

true 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;
	}