/** * Close the connection */ public function close() { try { if ($this->driver && $this->driver->isConnected()) { $this->getLock()->releaseAll(); $this->driver->close(); } } catch (\RedisException $e) { // doesn't matter, it's closing anyway } $this->isConnected = FALSE; }
/** * Close the connection */ public function close() { if ($this->driver && $this->driver->isConnected()) { $this->getLock()->releaseAll(); $this->driver->close(); $this->isConnected = FALSE; } }