You are here

class KeyValueNullExpirableFactory in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php \Drupal\Core\KeyValueStore\KeyValueNullExpirableFactory

Defines the key/value store factory for the null backend.

Hierarchy

Expanded class hierarchy of KeyValueNullExpirableFactory

File

core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php, line 8

Namespace

Drupal\Core\KeyValueStore
View source
class KeyValueNullExpirableFactory implements KeyValueExpirableFactoryInterface {

  /**
   * {@inheritdoc}
   */
  public function get($collection) {
    return new NullStorageExpirable($collection);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
KeyValueNullExpirableFactory::get public function Constructs a new expirable key/value store for a given collection name. Overrides KeyValueExpirableFactoryInterface::get