Skip to content Skip to sidebar Skip to footer

Does Python-memcache Use Consistent Hashing?

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.

Solution 1:

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

Solution 2:

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.

Post a Comment for "Does Python-memcache Use Consistent Hashing?"