function ChainedFastBackend::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Cache/ChainedFastBackend.php \Drupal\Core\Cache\ChainedFastBackend::__construct()
- 10 core/lib/Drupal/Core/Cache/ChainedFastBackend.php \Drupal\Core\Cache\ChainedFastBackend::__construct()
- 9 core/lib/Drupal/Core/Cache/ChainedFastBackend.php \Drupal\Core\Cache\ChainedFastBackend::__construct()
- 8.9.x core/lib/Drupal/Core/Cache/ChainedFastBackend.php \Drupal\Core\Cache\ChainedFastBackend::__construct()
Constructs a ChainedFastBackend object.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $consistentBackend: The consistent cache backend.
\Drupal\Core\Cache\CacheBackendInterface $fastBackend: The fast cache backend.
string $bin: The cache bin for which the object is created.
File
-
core/
lib/ Drupal/ Core/ Cache/ ChainedFastBackend.php, line 79
Class
- ChainedFastBackend
- Defines a backend with a fast and a consistent backend chain.
Namespace
Drupal\Core\CacheCode
public function __construct(protected CacheBackendInterface $consistentBackend, protected CacheBackendInterface $fastBackend, $bin) {
$this->bin = 'cache_' . $bin;
$this->lastWriteTimestamp = NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.