You are here

public function RedisMock::get in Zircon Profile 8

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

Retrieve item from the server.

Parameters

string $key:

Return value

bool

File

vendor/symfony/http-kernel/Tests/Profiler/Mock/RedisMock.php, line 125

Class

RedisMock
RedisMock for simulating Redis extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

public function get($key) {
  if (!$this->connected) {
    return false;
  }
  return $this
    ->getData($key);
}