public function MemcacheMock::set

Store data at the server.

Parameters

string $key:

string $var:

integer $flag:

integer $expire:

Return value

boolean

File

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

Class

MemcacheMock
MemcacheMock for simulating Memcache extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

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