
| Current Path : /var/www/html_old/abi/web/core/lib/Drupal/Core/KeyValueStore/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html_old/abi/web/core/lib/Drupal/Core/KeyValueStore/KeyValueMemoryFactory.php |
<?php
namespace Drupal\Core\KeyValueStore;
/**
* Defines the key/value store factory for the memory backend.
*/
class KeyValueMemoryFactory implements KeyValueFactoryInterface {
/**
* An array of keyvalue collections that are stored in memory.
*
* @var array
*/
protected $collections = [];
/**
* {@inheritdoc}
*/
public function get($collection) {
if (!isset($this->collections[$collection])) {
$this->collections[$collection] = new MemoryStorage($collection);
}
return $this->collections[$collection];
}
}