A web application for a news outlet uses Azure Cache for Redis to store articles. The articles fall into two main categories:
1. Breaking news stories, which receive a high volume of read requests shortly after publication, but traffic drops to zero within hours.
2. Evergreen features, which receive a steady, low-volume stream of read requests consistently over several months.
All cached articles are configured with a Time-to-Live (TTL) value. Under high load, the cache memory limit is reached. You need to configure an eviction policy that retains the evergreen features (consistently accessed over time) and prioritizes evicting breaking news stories whose traffic has subsided, even if those stories were accessed more recently than some evergreen features.
Which eviction policy should you choose?
- Avolatile-lru
- Bvolatile-ttl
- volatile-lfuCevap
- Dnoeviction