Credis_Client::close PHP Method

close() public method

public close ( ) : boolean
return boolean
    public function close()
    {
        $result = TRUE;
        if ($this->connected && !$this->persistent) {
            try {
                $result = $this->standalone ? fclose($this->redis) : $this->redis->close();
                $this->connected = FALSE;
            } catch (Exception $e) {
                // Ignore exceptions on close
            }
        }
        return $result;
    }

Usage Example

コード例 #1
0
 protected function tearDown()
 {
     if ($this->credis) {
         $this->credis->close();
         $this->credis = NULL;
     }
 }
All Usage Examples Of Credis_Client::close