MemoryBackendFactory.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\Core\CacheFile
core/lib/Drupal/Core/Cache/MemoryBackendFactory.phpView source
<?php
namespace Drupal\Core\Cache;
class MemoryBackendFactory implements CacheFactoryInterface {
/**
* Instantiated memory cache bins.
*
* @var \Drupal\Core\Cache\MemoryBackend[]
*/
protected $bins = [];
/**
* {@inheritdoc}
*/
public function get($bin) {
if (!isset($this->bins[$bin])) {
$this->bins[$bin] = new MemoryBackend();
}
return $this->bins[$bin];
}
}
Classes
Name | Description |
---|---|
MemoryBackendFactory |