Defines the key/value store factory for the null backend.
Expanded class hierarchy of KeyValueNullExpirableFactory
class KeyValueNullExpirableFactory {
/**
* Constructs a new key/value expirable null storage object for a given
* collection name.
*
* @param string $collection
* The name of the collection holding key and value pairs.
*
* @return \Drupal\Core\KeyValueStore\DatabaseStorageExpirable
* A key/value store implementation for the given $collection.
*/
public function get($collection) {
return new NullStorageExpirable($collection);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyValueNullExpirableFactory:: |
public | function | Constructs a new key/value expirable null storage object for a given collection name. |