If you're treating both servers as one pool, you cannot guarantee that. You would have to have different client instances with a subset of servers in each, and set keys that way.
That said, this is usually a symptom of an antipattern :( What are you trying to accomplish? On Sat, 10 Mar 2018, chetan sharma wrote: > I am running memcached on a cluster of servers and I have to make sure that > two keys should never end up on same server. What are the options I have to > achieve that? > > -- > > --- > You received this message because you are subscribed to the Google Groups > "memcached" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to memcached+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to memcached+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.