You are here

function KeyValueChainedFactory::__construct in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/KeyValueStore/KeyValueChainedFactory.php \Drupal\supercache\KeyValueStore\KeyValueChainedFactory::__construct()

Constructs this factory object.

Parameters

\Drupal\Component\Serialization\SerializationInterface $serializer: The serialization class to use.

\Drupal\Core\Database\Connection $connection: The Connection object containing the key-value tables.

File

src/KeyValueStore/KeyValueChainedFactory.php, line 51
Contains \Drupal\supercache\KeyValueStore\KeyValueChainedFactory.

Class

KeyValueChainedFactory
Defines the key/value store factory for the database backend.

Namespace

Drupal\supercache\KeyValueStore

Code

function __construct(CacheFactoryInterface $factory, SerializationInterface $serializer, Connection $connection) {
  $this->serializer = $serializer;
  $this->connection = $connection;
  $this->factory = $factory;
}