Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 5 |
MemoryBackendFactory | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 5 |
get | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 5 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Cache\MemoryBackendFactory. | |
*/ | |
namespace Drupal\Core\Cache; | |
class MemoryBackendFactory implements CacheFactoryInterface { | |
/** | |
* Instantiated memory cache bins. | |
* | |
* @var \Drupal\Core\Cache\MemoryBackend[] | |
*/ | |
protected $bins = array(); | |
/** | |
* {@inheritdoc} | |
*/ | |
function get($bin) { | |
if (!isset($this->bins[$bin])) { | |
$this->bins[$bin] = new MemoryBackend($bin); | |
} | |
return $this->bins[$bin]; | |
} | |
} |