MemoryStorage

Defines a default key/value store implementation.

Hierarchy

File

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

Namespace

Drupal\Core\KeyValueStore

Members

Name Modifiers Type Description
MemoryStorage::$data protected property The actual storage of key-value pairs.
MemoryStorage::delete public function Deletes an item from the key/value store. Overrides StorageBase::delete
MemoryStorage::deleteAll public function Deletes all items from the key/value store. Overrides KeyValueStoreInterface::deleteAll
MemoryStorage::deleteMultiple public function Deletes multiple items from the key/value store. Overrides KeyValueStoreInterface::deleteMultiple
MemoryStorage::get public function Returns the stored value for a given key. Overrides StorageBase::get
MemoryStorage::getAll public function Returns all stored key/value pairs in the collection. Overrides KeyValueStoreInterface::getAll
MemoryStorage::getMultiple public function Returns the stored key/value pairs for a given set of keys. Overrides KeyValueStoreInterface::getMultiple
MemoryStorage::has public function Returns whether a given key exists in the store. Overrides KeyValueStoreInterface::has
MemoryStorage::rename public function Renames a key. Overrides KeyValueStoreInterface::rename
MemoryStorage::set public function Saves a value for a given key. Overrides KeyValueStoreInterface::set
MemoryStorage::setIfNotExists public function Saves a value for a given key if it does not exist yet. Overrides KeyValueStoreInterface::setIfNotExists
MemoryStorage::setMultiple public function Saves key/value pairs. Overrides StorageBase::setMultiple
StorageBase::$collection protected property The name of the collection holding key and value pairs.
StorageBase::getCollectionName public function Returns the name of this collection. Overrides KeyValueStoreInterface::getCollectionName
StorageBase::__construct public function
doc_Drupal
2016-10-29 09:25:52
Comments
Leave a Comment

Please login to continue.