versioned key
A cache key that includes the data's version, so a write simply moves readers to a new key.
In more detail
Nothing has to be deleted or coordinated, so the stale read race disappears; old versions fall out by expiry. It is the inward version of HTTP entity tags.
Related terms
- cache invalidation — Marking cached copies as out of date, or deleting them, when the real data changes so the next read fetches fresh data.
- stale read — A read that returns an older value than the latest committed write.
- ETag — A response header holding an opaque tag that names one exact version of a representation, such as ETag: "1".
Taught in
- Cache Invalidation And The Three Hard Cases — Scalable System Design & Distributed Architecture