protected function XcacheCache::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/ XcacheCache.php, line 99
Class
- XcacheCache
- Xcache cache driver.
Namespace
Doctrine\Common\CacheCode
protected function doGetStats() {
$this
->checkAuthorization();
$info = xcache_info(XC_TYPE_VAR, 0);
return array(
Cache::STATS_HITS => $info['hits'],
Cache::STATS_MISSES => $info['misses'],
Cache::STATS_UPTIME => null,
Cache::STATS_MEMORY_USAGE => $info['size'],
Cache::STATS_MEMORY_AVAILABLE => $info['avail'],
);
}