You are here

private function MemcacheMock::storeData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php \Symfony\Component\HttpKernel\Tests\Profiler\Mock\MemcacheMock::storeData()
3 calls to MemcacheMock::storeData()
MemcacheMock::add in vendor/symfony/http-kernel/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 vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php
Replace value of the existing item.
MemcacheMock::set in vendor/symfony/http-kernel/Tests/Profiler/Mock/MemcacheMock.php
Store data at the server.

File

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

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