/** * do some cleanup */ public function __destruct() { try { if ($this->redis) { $this->redis->close(); $this->redis = null; } } catch (\Exception $e) { //nothing we can do about it... } }
/** * do some cleanup */ public function __destruct() { try { if ($this->redis) { $this->redis->close(); $this->redis = null; } } catch (\Exception $e) { } }