Doctrine\Common\Cache\CacheProvider::deleteAll PHP Метод

deleteAll() публичный Метод

{@inheritDoc}
public deleteAll ( )
    public function deleteAll()
    {
        $namespaceCacheKey = $this->getNamespaceCacheKey();
        $namespaceVersion = $this->getNamespaceVersion() + 1;
        if ($this->doSave($namespaceCacheKey, $namespaceVersion)) {
            $this->namespaceVersion = $namespaceVersion;
            return true;
        }
        return false;
    }

Usage Example

 /**
  * 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();
 }
All Usage Examples Of Doctrine\Common\Cache\CacheProvider::deleteAll