You are here

protected function DrupalMemcacheFactory::memcacheFlush in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 modules/memcache/src/DrupalMemcacheFactory.php \Drupal\memcache\DrupalMemcacheFactory::memcacheFlush()

Flushes the memcache bin/server/cache mappings.

1 call to DrupalMemcacheFactory::memcacheFlush()
DrupalMemcacheFactory::get in modules/memcache/src/DrupalMemcacheFactory.php
Returns a Memcache object based on settings and the bin requested.

File

modules/memcache/src/DrupalMemcacheFactory.php, line 176
Contains \Drupal\memcache\DrupalMemcacheFactory.

Class

DrupalMemcacheFactory
Factory class for creation of Memcache objects.

Namespace

Drupal\memcache

Code

protected function memcacheFlush() {
  foreach ($this->memcacheCache as $cluster) {
    memcache_close($cluster);
  }
  $this->memcacheCache = array();
}