예제 #1
0
파일: redis.lib.php 프로젝트: xuen/fw
 public function __destruct()
 {
     //XXX 此处假定除factory不会有其他地方new API_Redis
     if ($this->masterClient) {
         $this->masterClient->close();
     }
     if ($this->slaveClient) {
         $this->slaveClient->close();
     }
     if ($this->masterBackClient) {
         $this->masterBackClient->close();
     }
     if ($this->slaveBackClient) {
         $this->slaveBackClient->close();
     }
 }