You are here

protected function ZendDataCache::doFlush in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/ZendDataCache.php \Doctrine\Common\Cache\ZendDataCache::doFlush()

Flushes all cache entries.

Return value

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

Overrides CacheProvider::doFlush

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/ZendDataCache.php, line 67

Class

ZendDataCache
Zend Data Cache cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function doFlush() {
  $namespace = $this
    ->getNamespace();
  if (empty($namespace)) {
    return zend_shm_cache_clear();
  }
  return zend_shm_cache_clear($namespace);
}