DKNet.AspCore.Idempotency.NpgsqlStore
10.1.12
dotnet add package DKNet.AspCore.Idempotency.NpgsqlStore --version 10.1.12
NuGet\Install-Package DKNet.AspCore.Idempotency.NpgsqlStore -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.NpgsqlStore" 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.NpgsqlStore" Version="10.1.12" />
<PackageReference Include="DKNet.AspCore.Idempotency.NpgsqlStore" />
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.NpgsqlStore --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.NpgsqlStore, 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.NpgsqlStore@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.NpgsqlStore&version=10.1.12
#tool nuget:?package=DKNet.AspCore.Idempotency.NpgsqlStore&version=10.1.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DKNet.AspCore.Idempotency.NpgsqlStore
PostgreSQL-backed persistent store for DKNet.AspCore.Idempotency, built on the shared EF Core relational
store (DKNet.AspCore.Idempotency.Relational).
✨ Why use it?
- Persistent – idempotency keys live in a Postgres
IdempotencyKeystable, surviving app restarts. - Atomic under concurrency – a unique index on the composite key serializes duplicate requests in the database itself; no application-level locking needed.
- Migrations included – ships with its own EF Core migration and applies it automatically on first use, independently per connection string.
- Multi-database ready – register the store against several Postgres databases (e.g. per tenant) from the same process; each one is prepared on its own.
- Npgsql-tuned – retry-on-failure and split-query behaviour are configured out of the box.
🚀 Quick Start
dotnet add package DKNet.AspCore.Idempotency.NpgsqlStore
using DKNet.AspCore.Idempotency;
using DKNet.AspCore.Idempotency.NpgsqlStore;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddIdempotencyWithNpgsqlStore(
builder.Configuration.GetConnectionString("IdempotencyDb")!,
options =>
{
options.Expiration = TimeSpan.FromHours(48);
options.ConflictHandling = IdempotentConflictHandling.CachedResult;
});
var app = builder.Build();
app.MapPost("/orders", CreateOrderAsync)
.RequiredIdempotentKey();
app.Run();
📖 Documentation
Full guide — Postgres schema, concurrency behaviour, multi-database support, and how this store composes with the core and relational packages: DKNet.AspCore.Idempotency.NpgsqlStore.md
License
MIT — see LICENSE.
| 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)
- DKNet.AspCore.Idempotency.Relational (>= 10.1.12)
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Options (>= 10.0.11)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.1.12 | 33 | 8/25/2026 |
| 10.1.11 | 72 | 8/24/2026 |
| 10.1.10 | 88 | 8/22/2026 |
| 10.1.9 | 82 | 8/22/2026 |
| 10.1.8 | 85 | 8/21/2026 |
| 10.1.7 | 85 | 8/21/2026 |
| 10.1.6 | 80 | 8/21/2026 |
| 10.1.5 | 79 | 8/20/2026 |
| 10.1.4 | 77 | 8/20/2026 |
| 10.1.3 | 93 | 8/19/2026 |
| 10.1.2 | 80 | 8/19/2026 |
| 10.1.1 | 84 | 8/19/2026 |
| 10.0.36 | 85 | 8/18/2026 |
| 10.0.35 | 90 | 8/5/2026 |
| 10.0.34 | 87 | 8/5/2026 |
| 10.0.33 | 84 | 8/4/2026 |