MemoryCounterBackendFactory.php in Drupal 9
Namespace
Drupal\Core\CacheFile
core/lib/Drupal/Core/Cache/MemoryCounterBackendFactory.phpView source
<?php
namespace Drupal\Core\Cache;
class MemoryCounterBackendFactory 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 MemoryCounterBackend();
}
return $this->bins[$bin];
}
}
Classes
Name | Description |
---|---|
MemoryCounterBackendFactory |