class MemoryBackendFactory

Hierarchy

Expanded class hierarchy of MemoryBackendFactory

1 file declares its use of MemoryBackendFactory
CacheDecoratorTest.php in drupal/core/modules/system/lib/Drupal/system/Tests/Plugin/CacheDecoratorTest.php
Contains \Drupal\system\Tests\Plugin\CacheDecoratorTest.
1 string reference to 'MemoryBackendFactory'
core.services.yml in drupal/core/core.services.yml
drupal/core/core.services.yml
1 service uses MemoryBackendFactory

File

drupal/core/lib/Drupal/Core/Cache/MemoryBackendFactory.php, line 10
Contains \Drupal\Core\Cache\MemoryBackendFactory.

Namespace

Drupal\Core\Cache
View source
class MemoryBackendFactory {

  /**
   * Gets MemoryBackend for the specified cache bin.
   *
   * @param $bin
   *   The cache bin for which the object is created.
   *
   * @return \Drupal\Core\Cache\MemoryBackend
   *   The cache backend object for the specified cache bin.
   */
  function get($bin) {
    return new MemoryBackend($bin);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MemoryBackendFactory::get function Gets MemoryBackend for the specified cache bin.