Cache Invalidation

Problem

Your cache says: Price = €99 The database now says: Price = €79 Fast stale data is still wrong data.

Solution — Invalidation Strategy

Cached values need rules for expiration or explicit updating/removal when authoritative data changes.
Core idea: caching creates a second copy of data, so you need a strategy for when that copy stops being valid.