You are here

function KeyValueChainedExpirableFactory::__construct in Supercache 8

Same name and namespace in other branches
  1. 2.0.x src/KeyValueStore/KeyValueChainedExpirableFactory.php \Drupal\supercache\KeyValueStore\KeyValueChainedExpirableFactory::__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/KeyValueChainedExpirableFactory.php, line 60
Contains \Drupal\supercache\KeyValueStore\KeyValueWincacheExpirableFactory.

Class

KeyValueChainedExpirableFactory
Defines the key/value store factory for the wincache/databse backend.

Namespace

Drupal\supercache\KeyValueStore

Code

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