/** * Appends data to an existing item on the Redis server. * * @param string $key * @param string $value * @param int $expiration * @return bool */ 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); }