MemoryCounterBackendFactory.php
Same filename in other branches
Namespace
Drupal\Core\CacheFile
-
core/
lib/ Drupal/ Core/ Cache/ MemoryCounterBackendFactory.php
View 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
Title | Deprecated | Summary |
---|---|---|
MemoryCounterBackendFactory |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.