Skip to content

Cache invalidation

Cache invalidation ends reuse of a stored copy under defined rules. The source record remains a separate concern.

Also known asInvalidating a cache
Software Development

Cache invalidation means treating a stored entry as no longer usable, for example by removing it or requiring another validation. Data changes or defined validity rules can trigger it.

An address change example

In a hypothetical portal, a customer company's delivery address changes. An earlier cached copy cannot serve indefinitely as the current address. The design must determine which copies are affected and how they are renewed.

An expiry rule alone does not automatically provide immediate agreement with the source. Concurrent fetches can also affect renewal. Deleting a cache entry does not remove the authoritative record either. Invalidation, updating the source and authorisation remain different tasks.

Sources

Articles on this topic

Software Development with ASES

Custom software, web and mobile apps