A web application implements a caching layer to reduce database load. Over time, the cache starts serving stale data. What caching strategy should be implemented to resolve this?

  • Eviction Policies
  • Lazy Loading
  • Time-to-Live (TTL) caching
  • Write-Through Caching
Implementing Time-to-Live (TTL) caching allows data to be cached for a specific duration, after which it is considered stale and refreshed, resolving the issue of serving stale data over time.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *