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); }