DKNet.AspCore.Idempotency.RedisStore
10.1.12
dotnet add package DKNet.AspCore.Idempotency.RedisStore --version 10.1.12
NuGet\Install-Package DKNet.AspCore.Idempotency.RedisStore -Version 10.1.12
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="DKNet.AspCore.Idempotency.RedisStore" Version="10.1.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.AspCore.Idempotency.RedisStore" Version="10.1.12" />
<PackageReference Include="DKNet.AspCore.Idempotency.RedisStore" />
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 DKNet.AspCore.Idempotency.RedisStore --version 10.1.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DKNet.AspCore.Idempotency.RedisStore, 10.1.12"
#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 DKNet.AspCore.Idempotency.RedisStore@10.1.12
#: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=DKNet.AspCore.Idempotency.RedisStore&version=10.1.12
#tool nuget:?package=DKNet.AspCore.Idempotency.RedisStore&version=10.1.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DKNet.AspCore.Idempotency.RedisStore
A Redis-backed idempotency key store for DKNet.AspCore.Idempotency.
Implements the store contract directly against StackExchange.Redis — no schema, no migrations, and expiry falls
out of Redis's own TTL.
Features
- Atomic request reservation via
SET NX— exactly one concurrent caller per idempotency key proceeds - SHA-256 hashed, prefixed Redis keys so distinct composite keys never collide
- Native TTL-based expiry for both in-flight reservations and completed responses
- Reuses an existing
IConnectionMultiplexer/IDistributedCache, or registers its own from a connection string
Installation
dotnet add package DKNet.AspCore.Idempotency.RedisStore
Quick Start
builder.Services.AddIdempotencyWithRedisStore(
builder.Configuration.GetConnectionString("Redis")!,
options =>
{
options.Expiration = TimeSpan.FromHours(48);
});
Documentation
Full feature reference: https://github.com/baoduy/DKNet/blob/main/docs/AspNetCore/DKNet.AspCore.Idempotency.RedisStore.md
License
This project is licensed under the MIT License - see the LICENSE file for details.
About
Developed by Steven Hoang.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- DKNet.AspCore.Idempotency (>= 10.1.12)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Options (>= 10.0.11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.