Reputation: 1328
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.
Upvotes: 1
Views: 1133
Reputation: 3284
If you need something like that you might be interested in hash_ring
Upvotes: 3
Reputation: 9215
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.
Upvotes: 2