You are here

public static function Drupal::keyValueExpirable in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal.php \Drupal::keyValueExpirable()
  2. 9 core/lib/Drupal.php \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.

6 calls to Drupal::keyValueExpirable()
DrupalTest::testKeyValueExpirable in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the keyValueExpirable() method.
UpdateSemverCoreTest::testBrokenThenFixedUpdates in core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php
Checks that Drupal recovers after problems connecting to update server.
update_calculate_project_data in core/modules/update/update.compare.inc
Calculates the current update status of all projects on the site.
update_get_available in core/modules/update/update.module
Tries to get update information and refreshes it when necessary.
update_storage_clear in core/modules/update/update.module
Invalidates stored data relating to update status.

... See full list

File

core/lib/Drupal.php, line 368

Class

Drupal
Static Service Container wrapper.

Code

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