You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default cache eviction is lazy for performance reasons - eviction is only triggered on the next time the item is accessed. So even though an expired item is still in the cache it will not be used, and eviction will be triggered next time you try and access it, and any post eviction callbacks will fire then. If required you can force immediate expiration using ExpirationMode in LazyCache 2.1, see the expiration mode section of the docs for more info.
Describe the bug
DefaultCacheDurationSeconds is not being honored.
To Reproduce
public static readonly IAppCache CachingService = new CachingService { DefaultCachePolicy = new CacheDefaults { DefaultCacheDurationSeconds = 1 } };
Even though duration is set to 1 second (this time frame is for testing purpose), no cache entry is being evicted.
Expected behavior
Evict all cache entries after 1 second.
** Framework and Platform
The text was updated successfully, but these errors were encountered: