Immediate.Jobs.Redis
0.5.0
dotnet add package Immediate.Jobs.Redis --version 0.5.0
NuGet\Install-Package Immediate.Jobs.Redis -Version 0.5.0
<PackageReference Include="Immediate.Jobs.Redis" Version="0.5.0" />
<PackageVersion Include="Immediate.Jobs.Redis" Version="0.5.0" />
<PackageReference Include="Immediate.Jobs.Redis" />
paket add Immediate.Jobs.Redis --version 0.5.0
#r "nuget: Immediate.Jobs.Redis, 0.5.0"
#:package Immediate.Jobs.Redis@0.5.0
#addin nuget:?package=Immediate.Jobs.Redis&version=0.5.0
#tool nuget:?package=Immediate.Jobs.Redis&version=0.5.0
Immediate.Jobs.Redis
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
| Product | Versions 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. net11.0 is compatible. |
-
net10.0
- StackExchange.Redis (>= 3.1.31)
-
net11.0
- StackExchange.Redis (>= 3.1.31)
-
net8.0
- StackExchange.Redis (>= 3.1.31)
-
net9.0
- StackExchange.Redis (>= 3.1.31)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.