You are here

public function CacheDataCollector::getCacheHitsCount in Devel 8.3

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

Callback to return the total amount of hit cache CIDS.

Return value

int

File

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

Class

CacheDataCollector
Collects the used cache bins and cache CIDs.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getCacheHitsCount() {
  return $this
    ->getCacheCidsCount(CacheDataCollector::WEBPROFILER_CACHE_HIT);
}