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