You are here

public function CacheDataCollector::getCacheHits in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/CacheDataCollector.php \Drupal\webprofiler\DataCollector\CacheDataCollector::getCacheHits()
  2. 8 webprofiler/src/DataCollector/CacheDataCollector.php \Drupal\webprofiler\DataCollector\CacheDataCollector::getCacheHits()
  3. 8.2 webprofiler/src/DataCollector/CacheDataCollector.php \Drupal\webprofiler\DataCollector\CacheDataCollector::getCacheHits()

Callback to return hit cache CIDs keyed by bin.

Return value

array

File

webprofiler/src/DataCollector/CacheDataCollector.php, line 129

Class

CacheDataCollector
Collects the used cache bins and cache CIDs.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getCacheHits() {
  return $this
    ->cacheCids(CacheDataCollector::WEBPROFILER_CACHE_HIT);
}