protected function FileCache::doGetStats in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php \Doctrine\Common\Cache\FileCache::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/ FileCache.php, line 158
Class
- FileCache
- Base file cache driver.
Namespace
Doctrine\Common\CacheCode
protected function doGetStats() {
$usage = 0;
foreach ($this
->getIterator() as $file) {
$usage += $file
->getSize();
}
$free = disk_free_space($this->directory);
return array(
Cache::STATS_HITS => null,
Cache::STATS_MISSES => null,
Cache::STATS_UPTIME => null,
Cache::STATS_MEMORY_USAGE => $usage,
Cache::STATS_MEMORY_AVAILABLE => $free,
);
}