Simple question

Cahill, Earl ecahill at
Fri Mar 3 17:21:27 UTC 2006

Based on the keyname, a key/value pair gets hashed out to a particular
box.  Consequently, any operations (add, set, get, delete, etc) for that
keyname are pinned to the same box.

If a server goes down, and you are pinned to it, then what depends on
the value of no_rehash.  If no_rehash is true, then you're dead, as no
rehashing will take place.  If no_rehash is false, then memcache will
rehash based on which servers it thinks are up.  You can set no_rehash
using the set_norehash method.

You can find out about the above and other niceties by running the

perldoc Cache::Memcached

Good luck

> -----Original Message-----
> From: memcached-bounces at [mailto:memcached-
> bounces at] On Behalf Of Andrew Velikoredchanin
> Sent: Friday, March 03, 2006 11:06 AM
> To: memcached at
> Subject: Simple question
> Hi, all!
> Sorry, I do not undestend one moment...
> When I set in perl client more then one memcached server, keys set to
> one of them, or to all?
> What happen with client when one of two servers is down?
> Thanks.

More information about the memcached mailing list