private function RedisProfilerStorage::setValue

Stores an item on the Redis server under the specified key.

Parameters

string $key:

mixed $value:

int $expiration:

int $serializer:

Return value

Boolean

1 call to RedisProfilerStorage::setValue()
RedisProfilerStorage::write in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/RedisProfilerStorage.php
Saves a Profile.

File

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

Class

RedisProfilerStorage
RedisProfilerStorage stores profiling information in Redis.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

private function setValue($key, $value, $expiration = 0, $serializer = self::REDIS_SERIALIZER_NONE) {
  $redis = $this
    ->getRedis();
  $redis
    ->setOption(self::REDIS_OPT_SERIALIZER, $serializer);
  return $redis
    ->setex($key, $expiration, $value);
}