function KeyValueExpirableFactoryInterface::get

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface::get()
  2. 10 core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface::get()
  3. 11.x core/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 core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php
Constructs a new expirable key/value store for a given collection name.
KeyValueNullExpirableFactory::get in core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php
Constructs a new expirable key/value store for a given collection name.

File

core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php, line 19

Class

KeyValueExpirableFactoryInterface
Defines the expirable key/value store factory interface.

Namespace

Drupal\Core\KeyValueStore

Code

public function get($collection);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.