GoLang Memcached::addServers

request it (271)
GoLang replacement for PHP's Memcached::addServers [edit | history]

Do you know a GoLang replacement for PHP's Memcached::addServers? Write it!

PHP Memcached::addServers

PHP original manual for Memcached::addServers [ show | php.net ]


(PECL memcached >= 0.1.1)

Memcached::addServersAdd multiple servers to the server pool


public bool Memcached::addServers ( array $servers )

Memcached::addServers() adds servers to the server pool. Each entry in servers is supposed to be an array containing hostname, port, and, optionally, weight of the server. No connection is established to the servers at this time.

The same server may appear multiple times in the server pool, because no duplication checks are made. This is not advisable; instead, use the weight option to increase the selection weighting of this server.



Array of the servers to add to the pool.

Return Values

Returns TRUE on success or FALSE on failure.


Example #1 Memcached::addServers() example

= new Memcached();

$servers = array(

See Also