lithium\storage\cache\adapter\File::_delete()

protected method

Deletes a file using the corresponding cached item key.

Parameters

  • string $key

    Key to uniquely identify the cached item.

Returns

boolean

true on success, false otherwise.

Source

	protected function _delete($key) {
		$path = "{$this->_config['path']}/{$key}";
		return is_readable($path) && is_file($path) && unlink($path);
	}