Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Cache / MemoryBackendFactory.php
1 <?php
2
3 namespace Drupal\Core\Cache;
4
5 class MemoryBackendFactory implements CacheFactoryInterface {
6
7   /**
8    * Instantiated memory cache bins.
9    *
10    * @var \Drupal\Core\Cache\MemoryBackend[]
11    */
12   protected $bins = [];
13
14   /**
15    * {@inheritdoc}
16    */
17   public function get($bin) {
18     if (!isset($this->bins[$bin])) {
19       $this->bins[$bin] = new MemoryBackend();
20     }
21     return $this->bins[$bin];
22   }
23
24 }