Anarchy.Toolkit.Infrastructure.Caching.DynamoDb
1.1.1
dotnet add package Anarchy.Toolkit.Infrastructure.Caching.DynamoDb --version 1.1.1
NuGet\Install-Package Anarchy.Toolkit.Infrastructure.Caching.DynamoDb -Version 1.1.1
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Caching.DynamoDb" Version="1.1.1" />
<PackageVersion Include="Anarchy.Toolkit.Infrastructure.Caching.DynamoDb" Version="1.1.1" />
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Caching.DynamoDb" />
paket add Anarchy.Toolkit.Infrastructure.Caching.DynamoDb --version 1.1.1
#r "nuget: Anarchy.Toolkit.Infrastructure.Caching.DynamoDb, 1.1.1"
#:package Anarchy.Toolkit.Infrastructure.Caching.DynamoDb@1.1.1
#addin nuget:?package=Anarchy.Toolkit.Infrastructure.Caching.DynamoDb&version=1.1.1
#tool nuget:?package=Anarchy.Toolkit.Infrastructure.Caching.DynamoDb&version=1.1.1
Anarchy.Toolkit.Infrastructure.Caching.DynamoDb
Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Infrastructure · Package catalog
DynamoDB as the shared layer of the snapshot caches from Anarchy.Toolkit.Infrastructure.Caching.
dotnet add package Anarchy.Toolkit.Infrastructure.Caching.DynamoDb
ModuleDynamoDbCacheregisters AWS's distributed cache provider (AWS.AspNetCore.DistributedCacheProvider) as theIDistributedCache.
When to use it
Use it when a writer and its readers share snapshots through a DynamoDB table, for example an ECS job writing and Lambda functions reading.
How to use it
builder.UseModule(new ModuleDynamoDbCache(cfg => new DynamoDBDistributedCacheOptions
{
TableName = cfg["Cache:Table"],
PartitionKeyName = "id",
TTLAttributeName = "ttl"
}));
services.AddSnapshotCache<CarrierList>();
The module takes its options from the caller and reads no configuration section of its own. The provider uses the
registered IAmazonDynamoDB client, or adds one from the default AWS options; register your own client first to use
another endpoint such as DynamoDB Local.
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)
- AWS.AspNetCore.DistributedCacheProvider (>= 1.0.3)
- AWSSDK.Core (>= 4.1.1.2)
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Caching.Hybrid (>= 10.11.1)
- Microsoft.Extensions.Caching.Memory (>= 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 `ModuleDynamoDbCache`, which registers AWS's DynamoDB `IDistributedCache` provider with caller-supplied options.