protected function RedisCache::doGetStats in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php \Doctrine\Common\Cache\RedisCache::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/ RedisCache.php, line 116
Class
- RedisCache
- Redis cache provider.
Namespace
Doctrine\Common\CacheCode
protected function doGetStats() {
$info = $this->redis
->info();
return array(
Cache::STATS_HITS => $info['keyspace_hits'],
Cache::STATS_MISSES => $info['keyspace_misses'],
Cache::STATS_UPTIME => $info['uptime_in_seconds'],
Cache::STATS_MEMORY_USAGE => $info['used_memory'],
Cache::STATS_MEMORY_AVAILABLE => false,
);
}