class KeyValueDatabaseExpirableFactory in Service Container 7
Same name in this branch
- 7 src/KeyValueStore/KeyValueDatabaseExpirableFactory.php \Drupal\service_container\KeyValueStore\KeyValueDatabaseExpirableFactory
- 7 lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory
Same name and namespace in other branches
- 7.2 src/KeyValueStore/KeyValueDatabaseExpirableFactory.php \Drupal\service_container\KeyValueStore\KeyValueDatabaseExpirableFactory
@codeCoverageIgnore
Hierarchy
- class \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory implements KeyValueExpirableFactoryInterface
- class \Drupal\service_container\KeyValueStore\KeyValueDatabaseExpirableFactory
Expanded class hierarchy of KeyValueDatabaseExpirableFactory
File
- src/
KeyValueStore/ KeyValueDatabaseExpirableFactory.php, line 13 - Contains \Drupal\service_container\KeyValueStore\KeyValueDatabaseExpirableFactory.
Namespace
Drupal\service_container\KeyValueStoreView source
class KeyValueDatabaseExpirableFactory extends \Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory {
/**
* {@inheritdoc}
*/
public function get($collection) {
if (!isset($this->storages[$collection])) {
$this->storages[$collection] = new DatabaseStorageExpirable($collection, $this->serializer, $this->connection);
}
return $this->storages[$collection];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyValueDatabaseExpirableFactory:: |
protected | property | The database connection. | |
KeyValueDatabaseExpirableFactory:: |
protected | property | The serialization class to use. | |
KeyValueDatabaseExpirableFactory:: |
protected | property | Holds references to each instantiation so they can be terminated. | |
KeyValueDatabaseExpirableFactory:: |
public | function | Deletes expired items. | |
KeyValueDatabaseExpirableFactory:: |
public | function |
Constructs a new expirable key/value store for a given collection name. Overrides KeyValueDatabaseExpirableFactory:: |
|
KeyValueDatabaseExpirableFactory:: |
function | Constructs this factory object. |