private function disconnect() { if ($this->isConnected()) { $this->redis->close(); } $this->redis = null; }