private function MemcacheMock::storeData

3 calls to MemcacheMock::storeData()
MemcacheMock::add in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcacheMock.php
Add an item to the server only if such key doesn't exist at the server yet.
MemcacheMock::replace in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcacheMock.php
Replace value of the existing item.
MemcacheMock::set in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/Mock/MemcacheMock.php
Store data at the server.

File

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

Class

MemcacheMock
MemcacheMock for simulating Memcache extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

private function storeData($key, $value) {
  $this->storage[$key] = serialize($value);
  return true;
}