function MemoryBackendFactory::get
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/MemoryBackendFactory.php \Drupal\Core\Cache\MemoryBackendFactory::get()
- 10 core/lib/Drupal/Core/Cache/MemoryBackendFactory.php \Drupal\Core\Cache\MemoryBackendFactory::get()
- 11.x core/lib/Drupal/Core/Cache/MemoryBackendFactory.php \Drupal\Core\Cache\MemoryBackendFactory::get()
Overrides CacheFactoryInterface::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];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.