OrionGuard.Locks.Redis 6.5.11

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

OrionGuard.Locks.Redis

Redis backend for OrionGuard's outbox IDistributedLock.

A bridge package that lets consumers using OrionGuard.EntityFrameworkCore's outbox dispatcher coordinate across replicas through Redis instead of the default DB-backed SkipLockedDistributedLock.

Install

dotnet add package OrionGuard.Locks.Redis

Adds a transitive dependency on OrionLock.Redis (>= 0.2.3) and OrionGuard.EntityFrameworkCore (>= 6.5.0).

Use

Connection-string form:

services.AddOrionGuardEfCore<AppDbContext>(opts => opts
    .UseOutbox()
    .UseOrionLockRedis("localhost:6379", o => o.KeyPrefix = "myapp:outbox:"));

Shared multiplexer form (recommended when other parts of the app already use Redis):

services.AddSingleton<IConnectionMultiplexer>(_ => ConnectionMultiplexer.Connect("localhost:6379"));

services.AddOrionGuardEfCore<AppDbContext>(opts => opts
    .UseOutbox()
    .UseOrionLockRedis(o => o.KeyPrefix = "myapp:outbox:"));

What it does

Implements OrionGuard's IDistributedLock over OrionLock's raw IDistributedLockProvider (the single-attempt primitive Moongazing.OrionLock.Redis.RedisLockProvider). TryAcquireAsync returns null immediately on contention; disposing the handle issues an owner-checked release (Lua compare-and-delete on Redis). No blocking-acquire retry, no watchdog renewal, no reentrancy — OrionGuard's outbox dispatcher already polls on its own cadence and tolerates lease loss by design.

Trade-offs vs the default SkipLockedDistributedLock

  • Pros: removes the OrionGuard_OutboxLocks row write/update per polling cycle from the primary database. Useful when the primary DB is hot or read-replicated.
  • Cons: introduces Redis as a hard dependency for outbox dispatch. If Redis is unreachable, the dispatcher polls but never acquires; outbox messages still safely accumulate (they are written by the same transaction that mutates aggregate state).

License

MIT.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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
6.5.11 0 6/11/2026
6.5.10 0 6/10/2026
6.5.9 0 6/10/2026
6.5.8 0 6/10/2026
6.5.7 0 6/10/2026
6.5.6 0 6/10/2026
6.5.5 0 6/10/2026
6.5.4 11 6/10/2026
6.5.3 40 6/9/2026
6.5.2 54 6/8/2026