You are here

private function RedisMock::getData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Profiler/Mock/RedisMock.php \Symfony\Component\HttpKernel\Tests\Profiler\Mock\RedisMock::getData()
2 calls to RedisMock::getData()
RedisMock::append in vendor/symfony/http-kernel/Tests/Profiler/Mock/RedisMock.php
Append data to an existing item.
RedisMock::get in vendor/symfony/http-kernel/Tests/Profiler/Mock/RedisMock.php
Retrieve item from the server.

File

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

Class

RedisMock
RedisMock for simulating Redis extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

private function getData($key) {
  if (isset($this->storage[$key])) {
    return unserialize($this->storage[$key]);
  }
  return false;
}