You are here

public function DrupalMemcacheBase::__construct in Zircon Profile 8

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

Constructs a DrupalMemcacheBase object.

Parameters

string $bin: The cache bin.

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

2 calls to DrupalMemcacheBase::__construct()
DrupalMemcache::__construct in modules/memcache/src/DrupalMemcache.php
Constructs a DrupalMemcacheBase object.
DrupalMemcached::__construct in modules/memcache/src/DrupalMemcached.php
Constructs a DrupalMemcacheBase object.
2 methods override DrupalMemcacheBase::__construct()
DrupalMemcache::__construct in modules/memcache/src/DrupalMemcache.php
Constructs a DrupalMemcacheBase object.
DrupalMemcached::__construct in modules/memcache/src/DrupalMemcached.php
Constructs a DrupalMemcacheBase object.

File

modules/memcache/src/DrupalMemcacheBase.php, line 55
Contains \Drupal\memcache\DrupalMemcacheBase.

Class

DrupalMemcacheBase
Class DrupalMemcacheBase.

Namespace

Drupal\memcache

Code

public function __construct($bin, Settings $settings) {
  $this->bin = $bin;
  $this->settings = $settings;
  $this->hashAlgorithm = $this->settings
    ->get('memcache_key_hash_algorithm', 'sha1');
}