public function MemcachedMock::set

Store data at the server.

Parameters

string $key:

mixed $value:

integer $expiration:

Return value

boolean

File

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

Class

MemcachedMock
MemcachedMock for simulating Memcached extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

public function set($key, $value, $expiration = null) {
  if (!$this->connected) {
    return false;
  }
  $this
    ->storeData($key, $value);
  return true;
}