Maybe you should look into Memcached replication
Josef Finsel wrote:
Karsten,
It's not really possible nor should you worry about it. If this is
really an issue, then the way you're using memcached is probably not
correct.
If the memcached client is set correctly, it will distribute the keys
across both servers.
-Josef
On Wed, Aug 19, 2009 at 11:05 AM, Karsten
<[email protected]
<mailto:[email protected]>> wrote:
Hi guys,
I'm a newbie to memcached server and need your help.
I'm currently working on a script, or trying to start working ;),
that should copy all keys (all cached object) to an other memcached
server.
The situation is as follows:
I have two memcached server. Some users may login on a website and
their session will be cached on one of the server, not on both. But
both server should have the same cached content in case one server
goes down.
Can you tell me if this is possible and how to do it (a link to an
example or something that may help me)??
I have to write this script with perl, but the perl api doesen't look
like what i need.
Best regards,
Karsten