public function deleteAll()
{
$namespaceCacheKey = $this->getNamespaceCacheKey();
$namespaceVersion = $this->getNamespaceVersion() + 1;
if ($this->doSave($namespaceCacheKey, $namespaceVersion)) {
$this->namespaceVersion = $namespaceVersion;
return true;
}
return false;
}
/** * Removes items from the cache by conditions. * * @param array $conditions * @return void */ public function clean(array $conditions) { if (!isset($conditions[Nette\Caching\Cache::ALL])) { throw new NotImplementedException(); } $this->provider->deleteAll(); }