BitFaster.Caching
BitFaster.Caching copied to clipboard
provide a net9 build target
trafficstars
- Use new
System.Threading.Locktype inConcurrentLfuCore. Benchmark shows Lock.TryEnter is faster. - POC of TryGetAlternateCache for string keys, see https://github.com/dotnet/runtime/issues/27229
- The lookup is accessed by the GetAlternateLookup extension method
- Note, IAlternateEqualityComparer can create the original
Tfrom the alternate, so we can allocate strings only for cache miss and pass into event handlers etc.
- TODO: net9 specific unit tests (replace net core 3.1)