public function addServer($host, $port, $weight = 0)
    {
        if (true === $this->_hasServer($host, $port)) {
            return true;
        }

        if (false === $this->_cache->addServer($host, $port, $weight)) {
            return $this->_onError('setOption');
        }

        return true;
    }
public function addServer($host, $port, $weight = 0)
    {
        if (true === $this->_hasServer($host, $port)) {
            return true;
        }

        if (false === $this->_cache->addServer($host, $port, $weight)) {
            return $this->_onError('setOption');
        }

        return true;
    }
public function addServer ( $ host , $ port , $ weight = 0 ) { if ( true === $ this -> _hasServer ( $ host , $ port ) ) { return true ; } if ( false === $ this -> _cache -> addServer ( $ host , $ port , $ weight ) ) { return $ this -> _onError ( 'setOption' ) ; } return true ; }
Adds a server to the server pool.

@param string $host   The hostname of the memcache server
@param int    $port   The port on which memcache is running, 11211 by default
@param int    $weight The weight of the server

@return boolean TRUE on success or FALSE on failure.

@link http://php.net/manual/en/memcached.addserver.php
Adds a server to the server pool .