You are here

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

Marks all cache items as invalid.

Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE.

Overrides CacheBackendInterface::invalidateAll

See also

\Drupal\Core\Cache\CacheBackendInterface::deleteAll()

\Drupal\Core\Cache\CacheBackendInterface::invalidate()

\Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()

File

src/MemcacheBackend.php, line 374

Class

MemcacheBackend
Defines a Memcache cache backend.

Namespace

Drupal\memcache

Code

public function invalidateAll() {
  if ($this
    ->debug()) {
    $this
      ->getLogger('memcache')
      ->debug('Called invalidateAll() on bin @bin', [
      '@bin' => $this->bin,
    ]);
  }
  $this
    ->invalidateTags([
    "memcache:{$this->bin}",
  ]);
}