public function connect($host = '127.0.0.1', $port = 11211)
    {
        if (!isset($this->servers[$host . ':' . $port])) {
            $this->server = new \Memcache();
            $this->server->connect($host, $port);

            $this->servers[$host . ':' . $port] = $this->server;
        } else {
            $this->server = $this->servers[$host . ':' . $port];
        }

        return true;
    }
public function connect($host = '127.0.0.1', $port = 11211)
    {
        if (!isset($this->servers[$host . ':' . $port])) {
            $this->server = new \Memcache();
            $this->server->connect($host, $port);

            $this->servers[$host . ':' . $port] = $this->server;
        } else {
            $this->server = $this->servers[$host . ':' . $port];
        }

        return true;
    }
public function connect ( $ host = '127.0.0.1' , $ port = 11211 ) { if ( ! isset ( $ this -> servers [ $ host . ':' . $ port ] ) ) { $ this -> server = new \ Memcache ( ) ; $ this -> server -> connect ( $ host , $ port ) ; $ this -> servers [ $ host . ':' . $ port ] = $ this -> server ; } else { $ this -> server = $ this -> servers [ $ host . ':' . $ port ] ; } return true ; }
Connect and use specified server.

@param  string $host
@param  int $port
@return bool
Connect and use specified server .