protected function RedisCache::doGetStats

Retrieves cached information from data store

@since 2.2

Return value

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

Overrides CacheProvider::doGetStats

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/RedisCache.php, line 108

Class

RedisCache
Redis cache provider.

Namespace

Doctrine\Common\Cache

Code

protected function doGetStats() {
  $info = $this->redis
    ->info();
  return array(
    Cache::STATS_HITS => false,
    Cache::STATS_MISSES => false,
    Cache::STATS_UPTIME => $info['uptime_in_seconds'],
    Cache::STATS_MEMORY_USAGE => $info['used_memory'],
    Cache::STATS_MEMORY_AVAILIABLE => false,
  );
}