public function KeyValueExpirableFactoryInterface::get in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface::get()
Constructs a new expirable key/value store for a given collection name.
Parameters
string $collection: The name of the collection holding key and value pairs.
Return value
\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface An expirable key/value store implementation for the given $collection.
2 methods override KeyValueExpirableFactoryInterface::get()
- KeyValueDatabaseExpirableFactory::get in lib/
Drupal/ Core/ KeyValueStore/ KeyValueDatabaseExpirableFactory.php - Constructs a new expirable key/value store for a given collection name.
- KeyValueNullExpirableFactory::get in lib/
Drupal/ Core/ KeyValueStore/ KeyValueNullExpirableFactory.php - Constructs a new expirable key/value store for a given collection name.
File
- lib/
Drupal/ Core/ KeyValueStore/ KeyValueExpirableFactoryInterface.php, line 24 - Contains \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface.
Class
- KeyValueExpirableFactoryInterface
- Defines the expirable key/value store factory interface.
Namespace
Drupal\Core\KeyValueStoreCode
public function get($collection);