You are here

private function MemcacheMock::getData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php \Symfony\Component\HttpKernel\Tests\Profiler\Mock\MemcacheMock::getData()
1 call to MemcacheMock::getData()
MemcacheMock::get in vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php
Retrieve item from the server.

File

vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php, line 239

Class

MemcacheMock
MemcacheMock for simulating Memcache 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;
}