You are here

protected function MemcacheBackend::ensureBinDeletionTimeIsSet in Memcache API and Integration 8.2

Ensures a last bin deletion time has been set.

@internal

1 call to MemcacheBackend::ensureBinDeletionTimeIsSet()
MemcacheBackend::__construct in src/MemcacheBackend.php
Constructs a MemcacheBackend object.

File

src/MemcacheBackend.php, line 474

Class

MemcacheBackend
Defines a Memcache cache backend.

Namespace

Drupal\memcache

Code

protected function ensureBinDeletionTimeIsSet() {
  if (!$this
    ->getBinLastDeletionTime()) {
    $this->lastBinDeletionTime = $this->timestampInvalidator
      ->invalidateTimestamp($this->bin);
  }
}