function PerformanceData::getCacheSetCountByBin

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/PerformanceData.php \Drupal\Tests\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 265

Class

PerformanceData
Value object to store performance information collected from requests.

Namespace

Drupal\Tests

Code

public function getCacheSetCountByBin() : array {
  return array_map(fn(array $cids): int => count($cids), $this->cacheOperations['set'] ?? []);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.