__destruct() public method

Disconnects from the server and destroys the underlying resource when PHP's garbage collector kicks in.
public __destruct ( )
Exemplo n.º 1
0
 /**
  * Disconnects from the server and destroys the underlying resource and the
  * protocol reader resource when PHP's garbage collector kicks in.
  */
 public function __destruct()
 {
     phpiredis_reader_destroy($this->reader);
     parent::__destruct();
 }