DKNet.AspCore.Idempotency.MsSqlStore 10.1.11

dotnet add package DKNet.AspCore.Idempotency.MsSqlStore --version 10.1.11
                    
NuGet\Install-Package DKNet.AspCore.Idempotency.MsSqlStore -Version 10.1.11
                    
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.MsSqlStore" Version="10.1.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.AspCore.Idempotency.MsSqlStore" Version="10.1.11" />
                    
Directory.Packages.props
<PackageReference Include="DKNet.AspCore.Idempotency.MsSqlStore" />
                    
Project file
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.MsSqlStore --version 10.1.11
                    
#r "nuget: DKNet.AspCore.Idempotency.MsSqlStore, 10.1.11"
                    
#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.MsSqlStore@10.1.11
                    
#: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.MsSqlStore&version=10.1.11
                    
Install as a Cake Addin
#tool nuget:?package=DKNet.AspCore.Idempotency.MsSqlStore&version=10.1.11
                    
Install as a Cake Tool

DKNet.AspCore.Idempotency.MsSqlStore

NuGet License: MIT

A SQL Server-backed persistent store for DKNet.AspCore.Idempotency — idempotency keys and cached responses survive application restarts, with a race-free reserve-then-check flow under concurrent duplicate requests.

Features

  • Persists idempotency keys and cached responses in SQL Server via EF Core
  • Race-free duplicate handling backed by a database unique index, not application-level locking
  • Migrations ship with the package and run automatically on first use
  • Configured through the same IdempotencyOptions the core package already exposes — no extra options type to learn

Installation

dotnet add package DKNet.AspCore.Idempotency.MsSqlStore

Quick Start

using DKNet.AspCore.Idempotency;
using DKNet.AspCore.Idempotency.MsSqlStore;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddIdempotencyWithMsSqlStore(
    builder.Configuration.GetConnectionString("IdempotencyDb")!,
    options =>
    {
        options.Expiration = TimeSpan.FromHours(48);
        options.ConflictHandling = IdempotentConflictHandling.CachedResult;
    });

var app = builder.Build();

app.MapPost("/orders", () => Results.Ok())
    .RequiredIdempotentKey();

app.Run();

Learn more

Full registration details, the SQL Server schema, and gotchas around migrations and concurrency: DKNet.AspCore.Idempotency.MsSqlStore docs.

Requirements

  • .NET 10.0+
  • SQL Server 2019+ (or Azure SQL Database)

License

MIT License - see LICENSE file for details.

About

Developed by Steven Hoang.

Product 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.

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.11 0 8/24/2026
10.1.10 39 8/22/2026
10.1.9 54 8/22/2026
10.1.8 45 8/21/2026
10.1.7 53 8/21/2026
10.1.6 45 8/21/2026
10.1.5 45 8/20/2026
10.1.4 42 8/20/2026
10.1.3 58 8/19/2026
10.1.2 50 8/19/2026
10.1.1 54 8/19/2026
10.0.36 83 8/18/2026
10.0.35 90 8/5/2026
10.0.34 86 8/5/2026
10.0.33 94 8/4/2026
10.0.32 101 8/3/2026
10.0.31 99 7/21/2026
10.0.30 102 7/21/2026
10.0.29 134 6/22/2026
10.0.27 124 5/22/2026
Loading failed