You are here

public function MemcacheBackendFactory::get in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/memcache/src/MemcacheBackendFactory.php \Drupal\memcache\MemcacheBackendFactory::get()

Gets MemcacheBackend for the specified cache bin.

Parameters

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

Return value

\Drupal\memcache\MemcacheBackend The cache backend object for the specified cache bin.

File

modules/memcache/src/MemcacheBackendFactory.php, line 70
Contains \Drupal\memcache\MemcacheBackendFactory.

Class

MemcacheBackendFactory
Class DatabaseBackendFactory.

Namespace

Drupal\memcache

Code

public function get($bin) {
  return new MemcacheBackend($bin, $this->memcacheFactory
    ->get($bin), $this->lock, $this->settings, $this->checksumProvider);
}