Issues with Output Caching: Base Policy Overrides Specific Policies or No Policies Applied Without Base Policy
I’m encountering issues with output caching in my ASP.NET Core application. Here are the scenarios I’ve run into:
Can I configure MemoryCache to keep the n most recent items?
I would like to cache the n
most recent items using Microsoft.Extensions.Caching.Memory
. Once the cache size hits n
, the oldest item should be evicted to make room for the newest.