Skip to content

DefaultCacheDurationSeconds is not being honored #121

@hermesramos

Description

@hermesramos

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

  • OS: Windows 10
  • Framework: netcoreapp3.1
  • LazyCache Version: 2.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions