TTL

Set expiry. Simple. Stale data until it expires. Right for slow-changing data.

Advertisement

TTL

Set expiry. Simple. Stale data until it expires. Right for slow-changing data.

Advertisement

Write-through invalidate

When you write to DB, delete the cache key. Next read repopulates. Works until you have 100 caches to invalidate.