-
Notifications
You must be signed in to change notification settings - Fork 31
Home
Alex Peck edited this page Sep 20, 2022
·
28 revisions
BitFaster.Caching is a high performance in-memory caching library for .NET.
BitFaster.Caching provides bounded size caches with a focus on performance to address the limitations of .NET's MemoryCache (either System.Runtime.Caching.MemoryCache or more recently Microsoft.Extensions.Caching.MemoryCache).
BitFaster.Caching provides:
-
ClassicLru
: a reference implementation of LRU that is thread safe. This serves as a baseline for scalability analysis. - ConcurrentLru based on the 2Q eviction policy.
- ConcurrentLfu based on the W-TinyLfu eviction policy.
Caches can be used interchangeably via a common interface, extended to mitigate cache stampede or ease caching IDisposable values.