You are here

protected function MemcachedProfilerStorage::setValue in Zircon Profile 8

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

Store an item on the memcache server under the specified key.

Parameters

string $key:

mixed $value:

int $expiration:

Return value

bool

Overrides BaseMemcacheProfilerStorage::setValue

File

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

Class

MemcachedProfilerStorage
Memcached Profiler Storage.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function setValue($key, $value, $expiration = 0) {
  return $this
    ->getMemcached()
    ->set($key, $value, time() + $expiration);
}