function KeyValueChainedFactory::__construct in Supercache 8
Same name and namespace in other branches
- 2.0.x 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\KeyValueStoreCode
function __construct(CacheFactoryInterface $factory, SerializationInterface $serializer, Connection $connection) {
$this->serializer = $serializer;
$this->connection = $connection;
$this->factory = $factory;
}