function CacheDataCollector::__construct

File

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

Class

CacheDataCollector
Collects the used cache bins and cache CIDs.

Namespace

Drupal\webprofiler\DataCollector

Code

public function __construct() {
    $this->data['total'][CacheDataCollector::WEBPROFILER_CACHE_HIT] = 0;
    $this->data['total'][CacheDataCollector::WEBPROFILER_CACHE_MISS] = 0;
    $this->data['cache'] = [];
}