Hi all,
I’ve been using Django for many years and until recently, I had no need for a cache. Only when I started using Django Ratelimit did I have to familiarize myself with caching and pick a cache backend that meets the requirements given in the Django Ratelimit docs. Please understand that I’m writing this as someone who has barely any experience with caching in web apps at all, so forgive me if I’ve overlooked something obvious.
My first stop for this was, as always, the Django docs: Django’s cache framework. This page presents the available backends and their pros and cons well. I’ve read it several times in an attempt to pick the backend that works best for me.
Django Ratelimit requires a cache backend that is shared across all processes and servers and that implements atomic increments. According to its docs, Redis and Memcached are the officially supported backends; the database backend is explicitly ruled out, as it does not support atomic increments. (The note below cache.decr() in the Django docs points in the same direction.)
I think this matters for the suggestion to point people to the DB or Redis backends instead: for use cases like mine, the DB backend is not an option. Without Memcached, Redis would be the only one left.
Maybe I’ve not tried hard enough and I’m almost sure I’ve missed something. But Redis felt to me like yet another third-party dependency, and one that has been a bit unsteady lately: two license changes since 2024 plus a change of maintainers. I’m also not sure where the project is headed. (All I wanted to implement was rate limiting, not something with AI cloud context analysis.) 
Memcached?
sudo apt install memcached
Done.
(Yes, with the bindings and cross-server operation there is more to it, but basically it works just like that.)
As for the bindings, which I understand are the actual problem here: we have been running pymemcache 4.0.x on Python 3.12 in production for eight months now, without any problems. I realize that this says nothing about who will maintain it in the future, but maybe it helps as a data point.
To sum it up:
Memcached is easy to install and easy to use, and it is the only backend that meets the requirements above while being a cache and nothing else. For my use case, that combination is unique.
I understand your arguments, and I’m sure there are other solutions, possibly Redis. But I chose Memcached deliberately, after studying and weighing my options, and if it was removed (or just considered a second-class backend), the best of them would be gone.
Therefore, I would like to ask you to reconsider whether demoting Memcached is really the right way forward.