private function RedisMock::getData

2 calls to RedisMock::getData()
RedisMock::append in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php
Append data to an existing item
RedisMock::get in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php
Retrieve item from the server.

File

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

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;
}