You are here

public function ChainedFastBackend::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Cache/ChainedFastBackend.php \Drupal\Core\Cache\ChainedFastBackend::__construct()

Constructs a ChainedFastBackend object.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $consistent_backend: The consistent cache backend.

\Drupal\Core\Cache\CacheBackendInterface $fast_backend: The fast cache backend.

string $bin: The cache bin for which the object is created.

File

core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 96
Contains \Drupal\Core\Cache\ChainedFastBackend.

Class

ChainedFastBackend
Defines a backend with a fast and a consistent backend chain.

Namespace

Drupal\Core\Cache

Code

public function __construct(CacheBackendInterface $consistent_backend, CacheBackendInterface $fast_backend, $bin) {
  $this->consistentBackend = $consistent_backend;
  $this->fastBackend = $fast_backend;
  $this->bin = 'cache_' . $bin;
  $this->lastWriteTimestamp = NULL;
}