You are here

public function CacheBackendFactory::__construct in Redis 8

Creates a redis CacheBackendFactory.

Parameters

\Drupal\redis\ClientFactory $client_factory:

\Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider:

\Drupal\redis\Cache\SerializationInterface $serializer: The serialization class to use.

File

src/Cache/CacheBackendFactory.php, line 53

Class

CacheBackendFactory
A cache backend factory responsible for the construction of redis cache bins.

Namespace

Drupal\redis\Cache

Code

public function __construct(ClientFactory $client_factory, CacheTagsChecksumInterface $checksum_provider, SerializationInterface $serializer) {
  $this->clientFactory = $client_factory;
  $this->checksumProvider = $checksum_provider;
  $this->serializer = $serializer;
}