Anarchy.Toolkit.Infrastructure.Caching.Redis
1.1.1
dotnet add package Anarchy.Toolkit.Infrastructure.Caching.Redis --version 1.1.1
NuGet\Install-Package Anarchy.Toolkit.Infrastructure.Caching.Redis -Version 1.1.1
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Caching.Redis" Version="1.1.1" />
<PackageVersion Include="Anarchy.Toolkit.Infrastructure.Caching.Redis" Version="1.1.1" />
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Caching.Redis" />
paket add Anarchy.Toolkit.Infrastructure.Caching.Redis --version 1.1.1
#r "nuget: Anarchy.Toolkit.Infrastructure.Caching.Redis, 1.1.1"
#:package Anarchy.Toolkit.Infrastructure.Caching.Redis@1.1.1
#addin nuget:?package=Anarchy.Toolkit.Infrastructure.Caching.Redis&version=1.1.1
#tool nuget:?package=Anarchy.Toolkit.Infrastructure.Caching.Redis&version=1.1.1
Anarchy.Toolkit.Infrastructure.Caching.Redis
Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Infrastructure · Package catalog
Redis as the shared layer of the snapshot caches from Anarchy.Toolkit.Infrastructure.Caching.
dotnet add package Anarchy.Toolkit.Infrastructure.Caching.Redis
ModuleRedisCacheregisters Microsoft's StackExchange Redis provider (Microsoft.Extensions.Caching.StackExchangeRedis) as theIDistributedCache.
When to use it
Use it when a writer and its readers share snapshots through Redis (for example ElastiCache).
How to use it
builder.UseModule(new ModuleRedisCache(cfg => new RedisCacheOptions
{
Configuration = cfg["Cache:Redis"],
InstanceName = "carriers:"
}));
services.AddSnapshotCache<CarrierList>();
The module takes its options from the caller and reads no configuration section of its own.
See the toolkit overview and architecture guide.
Releases
See the release notes for the complete release history.
| 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
- Anarchy.Toolkit.Core (>= 3.0.1)
- Anarchy.Toolkit.Infrastructure.Caching (>= 1.1.1)
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Caching.Hybrid (>= 10.11.1)
- Microsoft.Extensions.Caching.Memory (>= 10.0.15)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 10.0.15)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Diagnostics (>= 10.0.15)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Logging (>= 10.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
## Releases
### 1.1.1
- feature(linting): Configure Sonar globally
- patch: Reformat all packages according to new linting extensions
- chore(release): Bump the reformatted packages and Automation
### 1.1.0
- Update dependencies for the current package release.
### 1.0.0
- Add `ModuleRedisCache`, which registers Microsoft's StackExchange Redis `IDistributedCache` with caller-supplied options.