You are here

public function MemcacheMock::set 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::set()

Store data at the server.

Parameters

string $key:

string $var:

int $flag:

int $expire:

Return value

bool

File

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

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