KeyValueStoreInterface::getCollectionName

public KeyValueStoreInterface::getCollectionName() Returns the name of this collection. Return value string The name of this collection. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 16 Class KeyValueStoreInterface Defines the interface for key/value store implementations. Namespace Drupal\Core\KeyValueStore Code public function getCollectionName();

KeyValueStoreInterface::getAll

public KeyValueStoreInterface::getAll() Returns all stored key/value pairs in the collection. Return value array An associative array containing all stored items in the collection. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 61 Class KeyValueStoreInterface Defines the interface for key/value store implementations. Namespace Drupal\Core\KeyValueStore Code public function getAll();

KeyValueStoreInterface::get

public KeyValueStoreInterface::get($key, $default = NULL) Returns the stored value for a given key. Parameters string $key: The key of the data to retrieve. mixed $default: The default value to use if the key is not found. Return value mixed The stored value, or the default value if no value exists. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 40 Class KeyValueStoreInterface Defines the interface for key/value store implementations. Namespace Drupal\Core\Ke

KeyValueStoreInterface::deleteMultiple

public KeyValueStoreInterface::deleteMultiple(array $keys) Deletes multiple items from the key/value store. Parameters array $keys: A list of item names to delete. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 118 Class KeyValueStoreInterface Defines the interface for key/value store implementations. Namespace Drupal\Core\KeyValueStore Code public function deleteMultiple(array $keys);

KeyValueStoreInterface::deleteAll

public KeyValueStoreInterface::deleteAll() Deletes all items from the key/value store. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 123 Class KeyValueStoreInterface Defines the interface for key/value store implementations. Namespace Drupal\Core\KeyValueStore Code public function deleteAll();

KeyValueStoreInterface::delete

public KeyValueStoreInterface::delete($key) Deletes an item from the key/value store. Parameters string $key: The item name to delete. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 110 Class KeyValueStoreInterface Defines the interface for key/value store implementations. Namespace Drupal\Core\KeyValueStore Code public function delete($key);

KeyValueStoreInterface

Defines the interface for key/value store implementations. Hierarchy interface \Drupal\Core\KeyValueStore\KeyValueStoreInterface File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueStoreInterface::delete public function Deletes an item from the key/value store. KeyValueStoreInterface::deleteAll public function Deletes all items from the key/value store. Ke

KeyValueStoreExpirableInterface::setWithExpireIfNotExists

public KeyValueStoreExpirableInterface::setWithExpireIfNotExists($key, $value, $expire) Sets a value for a given key with a time to live if it does not yet exist. Parameters string $key: The key of the data to store. mixed $value: The data to store. int $expire: The time to live for items, in seconds. Return value bool TRUE if the data was set, or FALSE if it already existed. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php, line 35 Class KeyValueStoreExpirableI

KeyValueStoreExpirableInterface::setWithExpire

public KeyValueStoreExpirableInterface::setWithExpire($key, $value, $expire) Saves a value for a given key with a time to live. Parameters string $key: The key of the data to store. mixed $value: The data to store. int $expire: The time to live for items, in seconds. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php, line 20 Class KeyValueStoreExpirableInterface Defines the interface for expiring data in a key/value store. Namespace Drupal\Core\KeyValueStore

KeyValueStoreExpirableInterface::setMultipleWithExpire

public KeyValueStoreExpirableInterface::setMultipleWithExpire(array $data, $expire) Saves an array of values with a time to live. Parameters array $data: An array of data to store. int $expire: The time to live for items, in seconds. File core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php, line 45 Class KeyValueStoreExpirableInterface Defines the interface for expiring data in a key/value store. Namespace Drupal\Core\KeyValueStore Code public function setMultipleWi