GerwimFeiken.Cache
1.9.0
dotnet add package GerwimFeiken.Cache --version 1.9.0
NuGet\Install-Package GerwimFeiken.Cache -Version 1.9.0
<PackageReference Include="GerwimFeiken.Cache" Version="1.9.0" />
paket add GerwimFeiken.Cache --version 1.9.0
#r "nuget: GerwimFeiken.Cache, 1.9.0"
// Install GerwimFeiken.Cache as a Cake Addin #addin nuget:?package=GerwimFeiken.Cache&version=1.9.0 // Install GerwimFeiken.Cache as a Cake Tool #tool nuget:?package=GerwimFeiken.Cache&version=1.9.0
GerwimFeiken.Cache
.NET library which provides key value cache functionality.
Supported providers
- In memory cache (
InMemoryCache
) - Cloudflare KV storage (
CloudflareCache
) - Redis (
RedisCache
)
Features
- Support for multiple providers (and you can write your own).
- Cache stampede protection (if you use the
ReadOrWrite
method).
How to use
Dependency injection
builder.Services.AddSingleton<ICache>(new Provider());
where Provider
is one of the supported providers.
Console application / class library
ICache cache = new Provider()
General configuration
When creating the provider, you'll need to pass options. These will extend from options. You can override these values when instantiating your provider.
InMemoryCache
Requires the package GerwimFeiken.Cache.InMemory
.
CloudflareCache
Requires the package GerwimFeiken.Cache.Cloudflare
.
See documentation for additional requirements.
RedisCache
Requires the package GerwimFeiken.Cache.Redis
.
See documentation for additional requirements.
Development
Tests
Some of the tests might be an integration test. You'll need to specify correct options for these to work.
Pack
To pack this library to use on NuGet, run the dotnet pack
command:
dotnet pack -c release
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on GerwimFeiken.Cache:
Package | Downloads |
---|---|
GerwimFeiken.Cache.InMemory
Package Description |
|
GerwimFeiken.Cache.Redis
Package Description |
|
GerwimFeiken.Cache.Cloudflare
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.9.0 | 107 | 11/15/2024 |
1.8.1 | 2,935 | 2/20/2024 |
1.8.0 | 258 | 2/19/2024 |
1.7.1 | 302 | 2/15/2024 |
1.7.0 | 355 | 2/8/2024 |
1.6.0 | 349 | 2/8/2024 |
1.5.0 | 862 | 12/22/2023 |
1.4.0 | 1,629 | 10/18/2023 |
1.3.0 | 1,677 | 8/3/2023 |
1.2.0 | 497 | 7/28/2023 |
1.1.1 | 726 | 7/11/2023 |
1.1.0 | 2,812 | 1/25/2023 |
1.0.0 | 418 | 1/22/2023 |
0.0.5 | 462 | 1/22/2023 |
0.0.4 | 348 | 1/22/2023 |
0.0.3 | 375 | 1/11/2023 |
0.0.2 | 378 | 1/10/2023 |
0.0.1 | 375 | 1/10/2023 |