You are here

KeyValueExpirableFactoryInterface.php in Service Container 7

File

lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface.
 */
namespace Drupal\Core\KeyValueStore;


/**
 * Defines the expirable key/value store factory interface.
 */
interface KeyValueExpirableFactoryInterface {

  /**
   * Constructs a new expirable key/value store for a given collection name.
   *
   * @param string $collection
   *   The name of the collection holding key and value pairs.
   *
   * @return \Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface
   *   An expirable key/value store implementation for the given $collection.
   */
  public function get($collection);

}

Interfaces

Namesort descending Description
KeyValueExpirableFactoryInterface Defines the expirable key/value store factory interface.