What is the best way to list every key stored in memcached?
11th October 2010
My answer to What is the best way to list every key stored in memcached? on Quora
Redis might be a better bet for this—it has a “KEYS *” command which can return every key in the dataset, and its GET and SET performance are comparable to memcached.
You can also set expiring keys within Redis, at which point it behaves very much like memcached. I’ve seen quite a few people use it as a drop-in memcached replacement, though you need to use be already using an abstraction in your code (such as Django’s built in caching layer) if you want to make the switch without any widespread code changes.
More recent articles
- Qwen2.5-Coder-32B is an LLM that can code well that runs on my Mac - 12th November 2024
- Visualizing local election results with Datasette, Observable and MapLibre GL - 9th November 2024
- Project: VERDAD - tracking misinformation in radio broadcasts using Gemini 1.5 - 7th November 2024