W3cubDocs

/Drupal 8

interface KeyValueStoreInterface

Defines the interface for key/value store implementations.

Hierarchy

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.
KeyValueStoreInterface::deleteMultiple public function Deletes multiple items from the key/value store.
KeyValueStoreInterface::get public function Returns the stored value for a given key.
KeyValueStoreInterface::getAll public function Returns all stored key/value pairs in the collection.
KeyValueStoreInterface::getCollectionName public function Returns the name of this collection.
KeyValueStoreInterface::getMultiple public function Returns the stored key/value pairs for a given set of keys.
KeyValueStoreInterface::has public function Returns whether a given key exists in the store.
KeyValueStoreInterface::rename public function Renames a key.
KeyValueStoreInterface::set public function Saves a value for a given key.
KeyValueStoreInterface::setIfNotExists public function Saves a value for a given key if it does not exist yet.
KeyValueStoreInterface::setMultiple public function Saves key/value pairs.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!KeyValueStore!KeyValueStoreInterface.php/interface/KeyValueStoreInterface/8.1.x