pythondjangomemcachedpython-memcachedconsistent-hashing

Does python-memcached support consistent hashing & binary protocol?


Python-memcached is the official supported memcached driver for Django.

Does it support

  1. Consistent hashing
  2. Binary protocol

If it does, how do I use those features within Django? I couldn't find any documentation.


Solution

  • Looking at the _get_server method on python-memcached v1.45, it seems it doesn't use consistent hashing, but a simple hash % len(buckets).

    Same goes for binary protocol, python-memcache uses, as far as I can see in the source, only text commands.