protected function RedisCache::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/ RedisCache.php, line 124
Class
- RedisCache
- Redis cache provider.
Namespace
Doctrine\Common\CacheCode
protected function doGetStats() {
$info = $this->redis
->info();
return array(
Cache::STATS_HITS => false,
Cache::STATS_MISSES => false,
Cache::STATS_UPTIME => $info['uptime_in_seconds'],
Cache::STATS_MEMORY_USAGE => $info['used_memory'],
Cache::STATS_MEMORY_AVAILABLE => false,
);
}