You are here

public function MemcacheBackend::__construct in Zircon Profile 8

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

Constructs a MemcacheBackend object. \Drupal\Core\Site\Settings

Parameters

string $bin: The bin name.

\Drupal\memcache\DrupalMemcacheInterface $memcache: The memcache object.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

\Drupal\Core\Site\Settings $settings: The settings instance.

\Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum service.

File

modules/memcache/src/MemcacheBackend.php, line 77
Contains \Drupal\memcache\MemcacheBackend.

Class

MemcacheBackend
Defines a Memcache cache backend.

Namespace

Drupal\memcache

Code

public function __construct($bin, DrupalMemcacheInterface $memcache, LockBackendInterface $lock, Settings $settings, CacheTagsChecksumInterface $checksum_provider) {
  $this->bin = $bin;
  $this->memcache = $memcache;
  $this->lock = $lock;
  $this->settings = $settings;
  $this->checksumProvider = $checksum_provider;
}