Meziantou.Framework.Http.Caching.InMemory
2.0.7
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Meziantou.Framework.Http.Caching.InMemory --version 2.0.7
NuGet\Install-Package Meziantou.Framework.Http.Caching.InMemory -Version 2.0.7
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.7" />
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.7" />
<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.7
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.7"
#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.7
#: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.7
#tool nuget:?package=Meziantou.Framework.Http.Caching.InMemory&version=2.0.7
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
using Meziantou.Framework.Http.Caching;
using Meziantou.Framework.Http.Caching.InMemory;
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.7)
-
net11.0
- Meziantou.Framework.Http.Caching (>= 2.0.7)
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.13 | 75 | 11/13/2026 |
| 2.0.12 | 153 | 11/8/2026 |
| 2.0.11 | 235 | 10/28/2026 |
| 2.0.10 | 124 | 10/21/2026 |
| 2.0.9 | 118 | 10/11/2026 |
| 2.0.8 | 185 | 9/11/2026 |
| 2.0.7 | 135 | 9/8/2026 |
| 2.0.6 | 142 | 9/6/2026 |
| 2.0.5 | 140 | 9/3/2026 |
| 2.0.4 | 124 | 9/3/2026 |
| 2.0.3 | 130 | 8/29/2026 |
| 2.0.2 | 131 | 8/23/2026 |
| 2.0.1 | 157 | 8/16/2026 |
| 2.0.0 | 215 | 7/5/2026 |
| 1.0.3 | 194 | 6/13/2026 |
| 1.0.2 | 5,477 | 4/25/2026 |
| 1.0.1 | 169 | 3/15/2026 |
| 1.0.0 | 135 | 3/14/2026 |