You are here

protected function PredisCache::doFlush in Plug 7

Flushes all cache entries.

Return value

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

Overrides CacheProvider::doFlush

File

lib/doctrine/cache/lib/Doctrine/Common/Cache/PredisCache.php, line 84

Class

PredisCache
Predis cache provider.

Namespace

Doctrine\Common\Cache

Code

protected function doFlush() {
  $response = $this->client
    ->flushdb();
  return $response === true || $response == 'OK';
}