public function MemcachedMock::append

Append data to an existing item

Parameters

string $key:

string $value:

Return value

boolean

File

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

Class

MemcachedMock
MemcachedMock for simulating Memcached extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

public function append($key, $value) {
  if (!$this->connected) {
    return false;
  }
  if (isset($this->storage[$key])) {
    $this
      ->storeData($key, $this
      ->getData($key) . $value);
    return true;
  }
  return false;
}