You are here

public function DrupalMemcacheInterface::flush in Memcache API and Integration 8.2

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()
DriverBase::flush in src/Driver/DriverBase.php
Immediately invalidates all existing items.

File

src/DrupalMemcacheInterface.php, line 101

Class

DrupalMemcacheInterface
Class DrupalMemcacheInterface.

Namespace

Drupal\memcache

Code

public function flush();