Memcached::addServer
Memcached::addServer
(PECL memcached >= 0.1.0)
Memcached::addServer — Add a server to the server pool
Description
public bool Memcached::addServer ( string $host , int $port [, int $weight = 0 ] )
Memcached::addServer() adds the specified server to the server pool. No connection is established to the server at this time, but if you are using consistent key distribution option (via Memcached::DISTRIBUTION_CONSISTENT
or Memcached::OPT_LIBKETAMA_COMPATIBLE
), some of the internal data structures will have to be updated.