public function MemoryBackendFactory::get in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Cache/MemoryBackendFactory.php \Drupal\Core\Cache\MemoryBackendFactory::get()
- 9 core/lib/Drupal/Core/Cache/MemoryBackendFactory.php \Drupal\Core\Cache\MemoryBackendFactory::get()
File
- core/
lib/ Drupal/ Core/ Cache/ MemoryBackendFactory.php, line 17
Class
Namespace
Drupal\Core\CacheCode
public function get($bin) {
if (!isset($this->bins[$bin])) {
$this->bins[$bin] = new MemoryBackend();
}
return $this->bins[$bin];
}