Snc\RedisBundle\Profiler\Storage\RedisProfilerStorage::getValue PHP Method

getValue() protected method

Retrieves an item from the Redis server.
protected getValue ( string $key, integer $serializer = self::REDIS_SERIALIZER_NONE ) : mixed
$key string
$serializer integer
return mixed
    protected function getValue($key, $serializer = self::REDIS_SERIALIZER_NONE)
    {
        $value = $this->redis->get($key);
        if ($value && self::REDIS_SERIALIZER_PHP === $serializer) {
            $value = unserialize($value);
        }
        return $value;
    }