Open judahr opened 2 years ago
Might be better to have MemoryCacheProvider
expose the IMemoryCache
and then you can cast and compact (and access everything else on that class) , rather than requiring all providers to implement an interface that may not be relevant.
For issue #171
Exposes Compact as found in MemoryCache. Other providers would have to implement or expose their own as ICacheProvider was changed.
From code comments in MemoryCache:
https://github.com/dotnet/runtime/blob/release/6.0/src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryCache.cs#L382-L393