You are here

public function MemcacheMock::flush in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php \Symfony\Component\HttpKernel\Tests\Profiler\Mock\MemcacheMock::flush()

Flush all existing items at the server.

Return value

bool

File

vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php, line 216

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;
}