function MemoryBackendFactory::get

Gets MemoryBackend for the specified cache bin.

Parameters

$bin: The cache bin for which the object is created.

Return value

\Drupal\Core\Cache\MemoryBackend The cache backend object for the specified cache bin.

File

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

Class

MemoryBackendFactory

Namespace

Drupal\Core\Cache

Code

function get($bin) {
  return new MemoryBackend($bin);
}