public function CacheBackendWrapper::__construct in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::__construct()
- 8 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::__construct()
- 8.2 webprofiler/src/Cache/CacheBackendWrapper.php \Drupal\webprofiler\Cache\CacheBackendWrapper::__construct()
Constructs a new CacheBackendWrapper.
Parameters
\Drupal\webprofiler\DataCollector\CacheDataCollector $cacheDataCollector: The cache data collector to inform about cache get calls.
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The wrapped cache backend.
string $bin: The name of the wrapped cache bin.
File
- webprofiler/
src/ Cache/ CacheBackendWrapper.php, line 46
Class
- CacheBackendWrapper
- Wraps an existing cache backend to track calls to the cache backend.
Namespace
Drupal\webprofiler\CacheCode
public function __construct(CacheDataCollector $cacheDataCollector, CacheBackendInterface $cacheBackend, $bin) {
$this->cacheDataCollector = $cacheDataCollector;
$this->cacheBackend = $cacheBackend;
$this->bin = $bin;
}