__destruct() public method

Disconnects from the server and destroys the underlying resource when the garbage collector kicks in only if the connection has not been marked as persistent.
public __destruct ( )
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function __destruct()
 {
     phpiredis_reader_destroy($this->reader);
     parent::__destruct();
 }