protected function WinCacheCache::doGetStats in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/WinCacheCache.php \Doctrine\Common\Cache\WinCacheCache::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/ 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'],
);
}