public function RedisMock::exists

Verify if the specified key exists.

Parameters

string $key:

Return value

boolean

File

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

Class

RedisMock
RedisMock for simulating Redis extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

public function exists($key) {
  if (!$this->connected) {
    return false;
  }
  return isset($this->storage[$key]);
}