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

appendValue() protected method

Appends data to an existing item on the Redis server.
protected appendValue ( string $key, string $value, integer $expiration ) : boolean
$key string
$value string
$expiration integer
return boolean
    protected function appendValue($key, $value, $expiration = 0)
    {
        if ($this->redis->exists($key)) {
            $this->redis->append($key, $value);
            return $this->redis->expire($key, $expiration);
        }
        return $this->redis->setex($key, $expiration, $value);
    }