You are here

public function DrupalMemcacheInterface::flush in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/memcache/src/DrupalMemcacheInterface.php \Drupal\memcache\DrupalMemcacheInterface::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.

1 method overrides DrupalMemcacheInterface::flush()
DrupalMemcacheBase::flush in modules/memcache/src/DrupalMemcacheBase.php
Immediately invalidates all existing items.

File

modules/memcache/src/DrupalMemcacheInterface.php, line 91
Contains \Drupal\memcache\DrupalMemcacheInterface.

Class

DrupalMemcacheInterface
Class DrupalMemcacheInterface.

Namespace

Drupal\memcache

Code

public function flush();