KeyValueStoreExpirableInterface

Defines the interface for expiring data in a key/value store. Hierarchy interface \Drupal\Core\KeyValueStore\KeyValueStoreInterfaceinterface \Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueStoreExpirableInterface::setMultipleWithExpire public function Saves an array of values with a time to liv

KeyValueNullExpirableFactory::get

public KeyValueNullExpirableFactory::get($collection) 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. Overrides KeyValueExpirableFactoryInterface::get File core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php, line 13 Class

KeyValueNullExpirableFactory

Defines the key/value store factory for the null backend. Hierarchy class \Drupal\Core\KeyValueStore\KeyValueNullExpirableFactory implements KeyValueExpirableFactoryInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueNullExpirableFactory::get public function Constructs a new expirable key/value store for a given collection name. Overrides KeyValueExp

KeyValueMemoryFactory::get

public KeyValueMemoryFactory::get($collection) Constructs a new 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\KeyValueStoreInterface A key/value store implementation for the given $collection. Overrides KeyValueFactoryInterface::get File core/lib/Drupal/Core/KeyValueStore/KeyValueMemoryFactory.php, line 20 Class KeyValueMemoryFactory Defines the key/value store fa

KeyValueMemoryFactory::$collections

An array of keyvalue collections that are stored in memory. Type: array File core/lib/Drupal/Core/KeyValueStore/KeyValueMemoryFactory.php, line 15 Class KeyValueMemoryFactory Defines the key/value store factory for the memory backend. Namespace Drupal\Core\KeyValueStore Code protected $collections = array();

KeyValueMemoryFactory

Defines the key/value store factory for the memory backend. Hierarchy class \Drupal\Core\KeyValueStore\KeyValueMemoryFactory implements KeyValueFactoryInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueMemoryFactory.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueMemoryFactory::$collections protected property An array of keyvalue collections that are stored in memory. KeyValueMemoryFactory::get public function

KeyValueFactoryInterface::get

public KeyValueFactoryInterface::get($collection) Constructs a new 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\KeyValueStoreInterface A key/value store implementation for the given $collection. File core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php, line 19 Class KeyValueFactoryInterface Defines the key/value store factory interface. Namespace D

KeyValueFactoryInterface

Defines the key/value store factory interface. Hierarchy interface \Drupal\Core\KeyValueStore\KeyValueFactoryInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueFactoryInterface::get public function Constructs a new key/value store for a given collection name.

KeyValueFactory::__construct

KeyValueFactory::__construct(ContainerInterface $container, array $options = array()) Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service container. array $options: (optional) Collection-specific storage override options. File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 53 Class KeyValueFactory Defines the key/value store factory. Namespace Drupal\Core\KeyValueStore Code function __construct(ContainerInterface $container, array

KeyValueFactory::SPECIFIC_PREFIX

The specific setting name prefix. The collection name will be prefixed with this constant and used as a setting name. The setting value will be the id of a service. File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 18 Class KeyValueFactory Defines the key/value store factory. Namespace Drupal\Core\KeyValueStore Code const SPECIFIC_PREFIX = 'keyvalue_service_';