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
- Datasette Enrichments: a new plugin framework for augmenting your data - 1st December 2023
- llamafile is the new best way to run a LLM on your own computer - 29th November 2023
- Prompt injection explained, November 2023 edition - 27th November 2023
- I'm on the Newsroom Robots podcast, with thoughts on the OpenAI board - 25th November 2023
- Weeknotes: DevDay, GitHub Universe, OpenAI chaos - 22nd November 2023
- Deciphering clues in a news article to understand how it was reported - 22nd November 2023
- Exploring GPTs: ChatGPT in a trench coat? - 15th November 2023
- Financial sustainability for open source projects at GitHub Universe - 10th November 2023
- ospeak: a CLI tool for speaking text in the terminal via OpenAI - 7th November 2023
- DALL-E 3, GPT4All, PMTiles, sqlite-migrate, datasette-edit-schema - 30th October 2023