protected function WinCacheCache::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/ WinCacheCache.php, line 78
Class
- WinCacheCache
- WinCache cache provider.
Namespace
Doctrine\Common\CacheCode
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_AVAILABLE => $meminfo['memory_free'],
);
}