function PerformanceData::getCacheGetCountByBin
Returns the cache get operation count grouped by bin.
Return value
int[] Count of cache get operations keyed by bin.
File
-
core/
tests/ Drupal/ Tests/ PerformanceData.php, line 252
Class
- PerformanceData
- Value object to store performance information collected from requests.
Namespace
Drupal\TestsCode
public function getCacheGetCountByBin() : array {
return array_map(fn(array $cids) => count($cids), $this->cacheOperations['get'] ?? []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.