protected function MemcacheCache::doGetStats in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/MemcacheCache.php \Doctrine\Common\Cache\MemcacheCache::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/ MemcacheCache.php, line 114
Class
- MemcacheCache
- Memcache cache provider.
Namespace
Doctrine\Common\CacheCode
protected function doGetStats() {
$stats = $this->memcache
->getStats();
return array(
Cache::STATS_HITS => $stats['get_hits'],
Cache::STATS_MISSES => $stats['get_misses'],
Cache::STATS_UPTIME => $stats['uptime'],
Cache::STATS_MEMORY_USAGE => $stats['bytes'],
Cache::STATS_MEMORY_AVAILABLE => $stats['limit_maxbytes'],
);
}