src/Comely/IO/Cache/Cache.php
public function addServer(int $engine, string $host = "127.0.0.1", int $port = 0): Server
    {
        $this->servers[] = new Server($engine, $host, $port);
        return end($this->servers);
    }
public function addServer(int $engine, string $host = "127.0.0.1", int $port = 0): Server
    {
        $this->servers[] = new Server($engine, $host, $port);
        return end($this->servers);
    }
public function addServer ( int $ engine , string $ host = "127.0.0.1" , int $ port = 0 ) : Server { $ this -> servers [ ] = new Server ( $ engine , $ host , $ port ) ; return end ( $ this -> servers ) ; }
Add a server to connection queue

Multiple cache servers may be added before connection, if connection fails with first server then Comely
Cache component will try to connect to next server.

@param int $engine
@param string $host
@param int $port
@return Server
@throws ConnectionException
Add a server to connection queue