Rwx.Caching.Redis
0.3.1
dotnet add package Rwx.Caching.Redis --version 0.3.1
NuGet\Install-Package Rwx.Caching.Redis -Version 0.3.1
<PackageReference Include="Rwx.Caching.Redis" Version="0.3.1" />
<PackageVersion Include="Rwx.Caching.Redis" Version="0.3.1" />
<PackageReference Include="Rwx.Caching.Redis" />
paket add Rwx.Caching.Redis --version 0.3.1
#r "nuget: Rwx.Caching.Redis, 0.3.1"
#:package Rwx.Caching.Redis@0.3.1
#addin nuget:?package=Rwx.Caching.Redis&version=0.3.1
#tool nuget:?package=Rwx.Caching.Redis&version=0.3.1
Rwx.Caching.Redis
Redis-backed HybridCache implementation of Rwx.Caching.ICacheService, with local L1 caching, Redis L2 caching, and cache-stampede protection.
Install
dotnet add package Rwx.Caching.Redis --version 0.1.0
Quick start
Install Rwx.Caching.Abstractions in any application project that injects ICacheService.
using Rwx.Caching.Redis;
builder.Services.AddRwxCaching(builder.Configuration);
The default connection-string name is Redis:
{
"ConnectionStrings": {
"Redis": "localhost:6379"
},
"Caching": {
"Expiration": "00:05:00",
"LocalCacheExpiration": "00:01:00"
}
}
Pass a different connection-string name as the third argument when needed. The module equivalent is RwxCachingModule.
Boundaries
Caching is an optimization, not a source of truth. Application code depends on Rwx.Caching.ICacheService; it must remain correct on cache misses, eviction, or Redis unavailability. Put invalidation next to the application operation that changes the cached data, and never put Redis-specific types into domain/application contracts.
| 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. |
-
net10.0
- Microsoft.Extensions.Caching.Hybrid (>= 10.7.0)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 10.0.9)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.9)
- Rwx.Caching.Abstractions (>= 0.3.1)
- Rwx.Core (>= 0.3.1)
- StackExchange.Redis (>= 2.13.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.