You are here

protected function ChainCache::doGetStats in Zircon Profile 8

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

Retrieves cached information from the data store.

@since 2.2

Return value

array|null An associative array with server's statistics if available, NULL otherwise.

Overrides CacheProvider::doGetStats

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php, line 136

Class

ChainCache
Cache provider that allows to easily chain multiple cache providers

Namespace

Doctrine\Common\Cache

Code

protected function doGetStats() {

  // We return all the stats from all adapters
  $stats = array();
  foreach ($this->cacheProviders as $cacheProvider) {
    $stats[] = $cacheProvider
      ->doGetStats();
  }
  return $stats;
}