public function MemcacheMock::flush

Flush all existing items at the server

Return value

boolean

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcacheMock.php, line 222

Class

MemcacheMock
MemcacheMock for simulating Memcache extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

public function flush() {
  if (!$this->connected) {
    return false;
  }
  $this->storage = array();
  return true;
}