MemoryBackendFactory::get($bin)
Gets a cache backend class for a given cache bin.
string $bin: The cache bin for which a cache backend object should be returned.
\Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin.
Overrides CacheFactoryInterface::get
function get($bin) { if (!isset($this->bins[$bin])) { $this->bins[$bin] = new MemoryBackend($bin); } return $this->bins[$bin]; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!MemoryBackendFactory.php/function/MemoryBackendFactory::get/8.1.x