You are here

public function DrupalMemcacheBase::flush in Zircon Profile 8

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

Immediately invalidates all existing items.

flush doesn't actually free any resources, it only marks all the items as expired, so occupied memory will be overwritten by new items.

Return value

bool TRUE on success or FALSE on failure.

Overrides DrupalMemcacheInterface::flush

File

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

Class

DrupalMemcacheBase
Class DrupalMemcacheBase.

Namespace

Drupal\memcache

Code

public function flush() {
  $this->memcache
    ->flush();
}