LazyCache 2.4.0

.NET Standard 2.0
dotnet add package LazyCache --version 2.4.0
NuGet\Install-Package LazyCache -Version 2.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LazyCache" Version="2.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LazyCache --version 2.4.0
#r "nuget: LazyCache, 2.4.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LazyCache as a Cake Addin
#addin nuget:?package=LazyCache&version=2.4.0

// Install LazyCache as a Cake Tool
#tool nuget:?package=LazyCache&version=2.4.0

Lazy cache is a simple, thread safe, in-memory caching library that makes it easy to add high performance caching to your dotnet app.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (35)

Showing the top 5 NuGet packages that depend on LazyCache:

Package Downloads

ServiceCollection registrations for LazyCache to initialise the dependency injection collection and add enable IAppCache to be injected into your app


A mocking library that creates LazyCache IAppCache system mocks using Moq.

Basis Theory .NET SDK



Basis Theory .NET Azure Encryption Provider

GitHub repositories (8)

Showing the top 5 popular GitHub repositories that depend on LazyCache:

Repository Stars
Windows system utilities to maximize productivity
Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
Book Manager and Automation (Sonarr for Ebooks)
An efficient multi-layered caching system for .NET
FusionCache is an easy to use, high performance and robust cache with an optional distributed 2nd layer and some advanced features.
Version Downloads Last updated
2.4.0 2,974,820 9/1/2021
2.1.3 1,826,774 3/15/2021
2.1.2 1,608,370 9/21/2020
2.1.1 9,844 9/20/2020
2.1.0 864 9/19/2020
2.0.5 12,087 9/19/2020
2.0.4 2,509,719 12/28/2019
2.0.3 715 12/28/2019
2.0.2 1,216 12/27/2019
2.0.1 952,916 5/22/2019
2.0.0 386,996 3/20/2019
2.0.0-beta03 156,559 5/13/2018
2.0.0-beta02 10,377 3/4/2018
2.0.0-beta01 838 3/4/2018 2,040,687 12/23/2016 39,715 9/10/2016
0.6.0 14,811 8/15/2015
0.5.5222.23409 3,816 4/19/2014
0.5.5222.22653 1,575 4/19/2014
0.5.5222.21857 1,588 4/19/2014
0.5.6 1,533 4/28/2014