You are here

public function MemcachedBackend::__construct in Memcache Storage 8

Contructs MemcachedBackend object.

Parameters

$bin: Cache bin name.

\Drupal\memcache_storage\DrupalMemcachedInterface $memcached: An object that handles memcached requests. Point your attention that it is not \Memcache or \Memcached object.

\Drupal\Core\Site\Settings $settings: Drupal settings object.

\Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: An object that handles invalidation by tags.

File

src/MemcachedBackend.php, line 57

Class

MemcachedBackend

Namespace

Drupal\memcache_storage

Code

public function __construct($bin, DrupalMemcachedInterface $memcached, Settings $settings, CacheTagsChecksumInterface $checksum_provider) {
  $this->bin = $bin;
  $this->memcached = $memcached;
  $this->settings = $settings;
  $this->checksumProvider = $checksum_provider;
}