Meziantou.Framework.Http.Caching.InMemory
2.0.14
Prefix Reserved
dotnet add package Meziantou.Framework.Http.Caching.InMemory --version 2.0.14
NuGet\Install-Package Meziantou.Framework.Http.Caching.InMemory -Version 2.0.14
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="Meziantou.Framework.Http.Caching.InMemory" Version="2.0.14" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meziantou.Framework.Http.Caching.InMemory" Version="2.0.14" />
<PackageReference Include="Meziantou.Framework.Http.Caching.InMemory" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Meziantou.Framework.Http.Caching.InMemory --version 2.0.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Meziantou.Framework.Http.Caching.InMemory, 2.0.14"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Meziantou.Framework.Http.Caching.InMemory@2.0.14
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Meziantou.Framework.Http.Caching.InMemory&version=2.0.14
#tool nuget:?package=Meziantou.Framework.Http.Caching.InMemory&version=2.0.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Meziantou.Framework.Http.Caching.InMemory
In-memory cache store for Meziantou.Framework.Http.Caching.
Installation
dotnet add package Meziantou.Framework.Http.Caching.InMemory
Usage
InMemoryHttpCacheStore is in the Meziantou.Framework.Http.Caching.InMemory namespace.
var persistenceProvider = new InMemoryHttpCacheStore();
// Optional: restore data from a previous session
await persistenceProvider.LoadFromFileAsync(Path.Combine(AppContext.BaseDirectory, "http-cache.json"));
using var cachingHandler = new HttpCachingDelegateHandler(persistenceProvider);
using var httpClient = new HttpClient(cachingHandler);
// Optional: remove stale entries that cannot be reused
await persistenceProvider.PruneObsoleteEntriesAsync();
// Persist cache to disk when needed
await persistenceProvider.SaveToFileAsync(Path.Combine(AppContext.BaseDirectory, "http-cache.json"));
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Meziantou.Framework.Http.Caching (>= 2.0.14)
-
net11.0
- Meziantou.Framework.Http.Caching (>= 2.0.14)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.14 | 73 | 12/1/2026 |
| 2.0.13 | 112 | 11/13/2026 |
| 2.0.12 | 162 | 11/8/2026 |
| 2.0.11 | 238 | 10/28/2026 |
| 2.0.10 | 128 | 10/21/2026 |
| 2.0.9 | 125 | 10/11/2026 |
| 2.0.8 | 188 | 9/11/2026 |
| 2.0.7 | 137 | 9/8/2026 |
| 2.0.6 | 146 | 9/6/2026 |
| 2.0.5 | 142 | 9/3/2026 |
| 2.0.4 | 126 | 9/3/2026 |
| 2.0.3 | 132 | 8/29/2026 |
| 2.0.2 | 135 | 8/23/2026 |
| 2.0.1 | 159 | 8/16/2026 |
| 2.0.0 | 217 | 7/5/2026 |
| 1.0.3 | 196 | 6/13/2026 |
| 1.0.2 | 5,479 | 4/25/2026 |
| 1.0.1 | 171 | 3/15/2026 |
| 1.0.0 | 138 | 3/14/2026 |