Description
FastCache is a thread-safe in-memory cache library for .NET developers, built as a faster alternative to Microsoft's MemoryCache. The project describes its core as a ConcurrentDictionary with expiration, shipped as a small DLL of about 8 KB and targeting .NET 6 and later. The README includes benchmark tables for Windows, Linux and a Mac, where FastCache lookups, get-or-add calls and add-remove operations run well ahead of MemoryCache and allocate less memory. It also compares the library with Microsoft's HybridCache. The repository covers a short usage guide, the trade-offs of the approach and the benchmark results. It is aimed at .NET backend developers who keep data in memory for speed and want a small cache with less allocation overhead. The source code is public on GitHub.…
Highlights
- Thread-safe in-memory cache with expiration
- Small DLL of about 8 KB
- Benchmarks against MemoryCache and HybridCache
- Targets .NET 6 and later
Ratings & Reviews
No ratings yet
Be the first to rate FastCache.
People also visit

build-perf-baseline
Establish MSBuild/.NET build performance baselines before optimizing
FastCache FAQ
What is FastCache?
A thread-safe in-memory cache for .NET, built as a faster alternative to Microsoft's MemoryCache. The README describes it as a ConcurrentDictionary with expiration.
Which .NET versions does it support?
The README says it is for .NET Core, specifically .NET 6 and later.
How big is the library?
The README describes it as a lightweight DLL of about 8 KB.
How much faster is it than MemoryCache?
The benchmark tables in the README show FastCache lookups and get-or-add calls well ahead of MemoryCache on Windows, Linux and macOS, with fewer allocations. Results depend on the machine and the workload, so run your own tests before relying on them.
Is it open source?
Yes. The source code is public on GitHub under the jitbit organization.
What are the best FastCache alternatives?
Popular alternatives to FastCache include NonBlocking, Downloader and DispatchR. See all FastCache alternatives








