views:

308

answers:

2

I'm using the python-memcache library, and I'm wondering if anyone knows if consistent hashing is used by that client as of 1.44.

+2  A: 

From a quick view into the source code: No it does not. It uses server = hash_key % len(servers) and round-robin if offline/full servers are encountered.

ebo
Yeah my bad, I should have viewed the source myself. Thanks.
jay_soo
+2  A: 

If you need something like that you might be interested in hash_ring

Koen Bok