You are here

public function MemcachedMock::flush in Zircon Profile 8.0

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

Flush all existing items at the server.

Return value

bool

File

vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcachedMock.php, line 193

Class

MemcachedMock
MemcachedMock for simulating Memcached extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

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