public function MemcachedMock::get

Retrieve item from the server.

Parameters

string $key:

callable $cache_cb:

float $cas_token:

Return value

boolean

File

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

Class

MemcachedMock
MemcachedMock for simulating Memcached extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

public function get($key, $cache_cb = null, &$cas_token = null) {
  if (!$this->connected) {
    return false;
  }
  return $this
    ->getData($key);
}