You are here

public function MemcacheBackend::removeBin in Memcache API and Integration 8.2

Remove a cache bin.

Overrides CacheBackendInterface::removeBin

File

src/MemcacheBackend.php, line 402

Class

MemcacheBackend
Defines a Memcache cache backend.

Namespace

Drupal\memcache

Code

public function removeBin() {
  if ($this
    ->debug()) {
    $this
      ->getLogger('memcache')
      ->debug('Called removeBin() on bin @bin', [
      '@bin' => $this->bin,
    ]);
  }
  $this->lastBinDeletionTime = $this->timestampInvalidator
    ->invalidateTimestamp($this->bin);
}