Skip to main content
net10.0net11.0net8.0net9.0

Redis queue and recurring storage provider for Immediate.Jobs.

Published
Aug 28, 2026
1mo ago
Total Downloads
884
884

Install

dotnet add package Immediate.Jobs.Redis --version 0.5.0
ProductVersions
.NET
net10.0net11.0net8.0net9.0

README

Immediate.Jobs.Redis

NuGet Documentation License

Distributed Redis queue and recurring storage for Immediate.Jobs, built on StackExchange.Redis.

Installation

dotnet add package Immediate.Jobs --prerelease
dotnet add package Immediate.Jobs.Redis --prerelease

Configuration

Register an application-owned IConnectionMultiplexer, then select Redis storage and configure its key placement:

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

builder.Services.AddMyAppHandlers();
builder.Services.AddMyAppJobs()
	.ConfigureStorage(storage => storage
		.UseRedis()
		.ConfigureRedis(redis =>
		{
			redis.Database = 0;
			redis.KeyPrefix = "billing-jobs";
		}));

AddMyAppJobs is the generated registration method for an assembly named MyApp.

The provider resolves IConnectionMultiplexer from dependency injection. The application controls how that connection is created and shared. Registering it with the factory overload of AddSingleton lets the service provider dispose it at shutdown.

The prefix isolates applications and keeps all of the application's keys in one Redis Cluster slot, which is required for operations that update several keys together. Database defaults to -1 (the server default), and KeyPrefix defaults to immediate-jobs. Prefixes cannot be empty or contain braces; invalid options fail validation when the host starts.

Redis coordinates job claims between every application replica automatically. No UseSingleServer() or UseDistributed() call is needed. If a process stops, work that it claimed becomes available to another replica after the lease expires.

Capabilities and limitations

Redis supports ordinary and recurring jobs, cancellation, retries, execution history, and retention.

Redis does not support fair queues, batches, or continuations; fair scheduling and dependency graphs require the Entity Framework Core or LinqToDB provider.

More information

Changes from Previous Version

No structural changes between v0.4.0 and v0.5.0.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.