You are here

public function CacheProvider::deleteAll in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php \Doctrine\Common\Cache\CacheProvider::deleteAll()

Deletes all cache entries in the current cache namespace.

Return value

boolean TRUE if the cache entries were successfully deleted, FALSE otherwise.

Overrides ClearableCache::deleteAll

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php, line 145

Class

CacheProvider
Base class for cache provider implementations.

Namespace

Doctrine\Common\Cache

Code

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