Defines the key/value store factory for the database backend.
Expanded class hierarchy of KeyValueDatabaseExpirableFactory
class KeyValueDatabaseExpirableFactory extends KeyValueDatabaseFactory {
/**
* Constructs a new key/value expirable database storage object for a given
* collection name.
*
* @param string $collection
* The name of the collection holding key and value pairs.
* @param \Drupal\Core\Database\Connection $connection
* The connection to run against.
* @return \Drupal\Core\KeyValueStore\DatabaseStorageExpirable
* A key/value store implementation for the given $collection.
*/
public function get($collection) {
return new DatabaseStorageExpirable($collection, $this->connection);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyValueDatabaseExpirableFactory:: |
public | function |
Constructs a new key/value expirable database storage object for a given
collection name. Overrides KeyValueDatabaseFactory:: |
|
KeyValueDatabaseFactory:: |
function | Constructs this factory object. |