DEL
The Redis command that deletes one or more keys.
In more detail
Deleting a cached key on write is the safe invalidation move: the next reader refills it from the database. It returns the number of keys that were actually removed.
Related terms
- SET — The Redis command that stores a value under a key, optionally with an expiry or only if the key does not exist.
- cache invalidation — Marking cached copies as out of date, or deleting them, when the real data changes so the next read fetches fresh data.
Taught in
- Cache Invalidation And The Three Hard Cases — Scalable System Design & Distributed Architecture