protected function WinCacheCache::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/WinCacheCache.php, line 80

Class

WinCacheCache
WinCache cache provider.

Namespace

Doctrine\Common\Cache

Code

protected function doGetStats() {
  $info = wincache_ucache_info();
  $meminfo = wincache_ucache_meminfo();
  return array(
    Cache::STATS_HITS => $info['total_hit_count'],
    Cache::STATS_MISSES => $info['total_miss_count'],
    Cache::STATS_UPTIME => $info['total_cache_uptime'],
    Cache::STATS_MEMORY_USAGE => $meminfo['memory_total'],
    Cache::STATS_MEMORY_AVAILIABLE => $meminfo['memory_free'],
  );
}