public static function Drupal::keyValueExpirable

Returns an expirable key value store collection.

Parameters

string $collection: The name of the collection holding key and value pairs.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface An expirable key value store collection.

File

drupal/core/lib/Drupal.php, line 193
Contains Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function keyValueExpirable($collection) {
  return static::$container
    ->get('keyvalue.expirable')
    ->get($collection);
}