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.
Loading...
Related Quiz
- The method attributeAdded belongs to the interface _________.
- In an MVC framework, a servlet often delegates business logic processing to __________.
- What is the benefit of implementing the SingleThreadModel interface in servlets?
- When implementing a filter, it's critical to maintain the correct order of processing by calling __________ in the doFilter method.
- The process of replacing older cache entries with new ones is known as __________.