You are here

protected function MemcachedProfilerStorage::appendValue in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Profiler/MemcachedProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\MemcachedProfilerStorage::appendValue()

Append data to an existing item on the memcache server.

Parameters

string $key:

string $value:

int $expiration:

Return value

bool

Overrides BaseMemcacheProfilerStorage::appendValue

File

vendor/symfony/http-kernel/Profiler/MemcachedProfilerStorage.php, line 93

Class

MemcachedProfilerStorage
Memcached Profiler Storage.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function appendValue($key, $value, $expiration = 0) {
  $memcached = $this
    ->getMemcached();
  if (!($result = $memcached
    ->append($key, $value))) {
    return $memcached
      ->set($key, $value, $expiration);
  }
  return $result;
}