protected function MemcachedProfilerStorage::appendValue

Append data to an existing item on the memcache server

Parameters

string $key:

string $value:

int $expiration:

Return value

boolean

Overrides BaseMemcacheProfilerStorage::appendValue

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/MemcachedProfilerStorage.php, line 94

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