public function RedisMock::flushAll

Flush all existing items from all databases at the server.

Return value

boolean

File

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

Class

RedisMock
RedisMock for simulating Redis extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

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