public function MemcacheBackend::__construct in Memcache API and Integration 8.2
Constructs a MemcacheBackend object.
Parameters
string $bin: The bin name.
\Drupal\memcache\DrupalMemcacheInterface $memcache: The memcache object.
\Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum service.
\Drupal\memcache\Invalidator\TimestampInvalidatorInterface $timestamp_invalidator: The timestamp invalidation provider.
File
- src/
MemcacheBackend.php, line 89
Class
- MemcacheBackend
- Defines a Memcache cache backend.
Namespace
Drupal\memcacheCode
public function __construct($bin, DrupalMemcacheInterface $memcache, CacheTagsChecksumInterface $checksum_provider, TimestampInvalidatorInterface $timestamp_invalidator) {
$this->bin = $bin;
$this->memcache = $memcache;
$this->checksumProvider = $checksum_provider;
$this->timestampInvalidator = $timestamp_invalidator;
$this
->ensureBinDeletionTimeIsSet();
}