public function setRedis($redis, $chainRedis = false) { $this->redis = $redis; return $chainRedis ? $redis : $this; }