You are here

public function CacheProvider::deleteAll in Plug 7

Deletes all cache entries.

Return value

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

Overrides ClearableCache::deleteAll

File

lib/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);
}