You are here

protected function ChainCache::doGetStats in Plug 7

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

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