Through some of my last few projects using Django and Memcached I kept
running into the problem that python-memcached appears to no longer be
maintained[1], and even before that the release frequency was getting
quite low.
For Django pylibmc is an alternative, but having to rely on an
underlying C library is a bit annoying and the library does act a little
differently.
Give the state of python-memcached I think Django should support
pymemcache[2]. It is actively maintained by Pintrest, with appropriate
opensource licensing, is fully python, and appears to be a great library.
There appear to have been attempts by thirdparties to make a Django
cache backend for it, but none of those are maintained. Bringing the
support into core, and replacing python-memcached with pymemcache may be
a better good long term solution than continuing to support and
recommend an unmaintained library when there is a suitable alternative.
I opened this ticket here to track that, and the recommendation was to
bring it (rightly so) to the mailing list:
https://code.djangoproject.com/ticket/29887
I'm also a member of the OpenStack community and I've talked to devs who
were interested in taking over python-memcached as per the discussion in
the linked issue, but it looks like OpenStack's oslo.cache is also
switching to pymemcache at this stage because it offers them a great
alternative.
Any thoughts?
1:
https://github.com/linsomniac/python-memcached/issues/95
2:
https://github.com/pinterest/pymemcache