v2.5.0
What's changed
- Provide time-based expiry for
ConcurrentLfu, matchingConcurrentLru. This closely follows the implementation in Java's Caffeine, using a port of Caffeine's hierarchical timer wheel to perform all operations in O(1) time. Expire after write, expire after access and expire after usingIExpiryCalculatorcan be configured viaConcurrentLfuBuilderextension methods. - Provide
ICacheExtandIAsyncCacheExtto enable client code compiled against .NET Standard to use the builder APIs and cache methods added since v2.0. These new methods are excluded in the base interfaces for .NET Standard, since adding them would be a breaking change. - Provide the
Durationconvenience methodsFromHoursandFromDays.
Full changelog: v2.4.1...v2.5.0