Skip to content

v2.6.0

Choose a tag to compare

@bitfaster bitfaster released this 04 May 17:19
43a8822

What's changed

  • Added support for .NET 10.
  • Added Alternate Lookup support across ICache, IAsyncCache, IScopedCache, and IAsyncScopedCache, enabling allocation free alternate key lookups via ReadOnlySpan<char> on caches with a string primary key.
  • Enabled ref struct support for the TArg generic type parameter in synchronous GetOrAdd methods, allowing stack-only arguments to be passed in.
  • Added optional support for updated and removed events to ConcurrentLfu, configured by calling builder WithEvents. ConcurrentLfu now has events enabled by default.
  • Adopted the System.Threading.Lock type in ConcurrentLfu for a minor performance optimization.
  • Fixed a concurrency bug fix in ScopedAtomicFactory, where scope initialization/disposal could observe stale state under contention.
  • Fixed the BackgroundThreadScheduler completion task to return completed when it is immediately disposed prior to executing any work.

Full changelog: v2.5.4...v2.6.0