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