Naravel.Queue.Memory
0.2.0
dotnet add package Naravel.Queue.Memory --version 0.2.0
NuGet\Install-Package Naravel.Queue.Memory -Version 0.2.0
<PackageReference Include="Naravel.Queue.Memory" Version="0.2.0" />
<PackageVersion Include="Naravel.Queue.Memory" Version="0.2.0" />
<PackageReference Include="Naravel.Queue.Memory" />
paket add Naravel.Queue.Memory --version 0.2.0
#r "nuget: Naravel.Queue.Memory, 0.2.0"
#:package Naravel.Queue.Memory@0.2.0
#addin nuget:?package=Naravel.Queue.Memory&version=0.2.0
#tool nuget:?package=Naravel.Queue.Memory&version=0.2.0
Naravel.Queue.Memory
In-process "memory" queue driver for Naravel.Queue - zero dependencies, ideal for tests and local development.
| Fact | Detail |
|---|---|
| Install | dotnet add package Naravel.Queue.Memory |
| Targets | .NET 10 |
| Needs | Naravel.Queue, which NuGet installs with it |
| Driver | memory, added with AddMemoryDriver |
What you get
- Asynchronous, not inline. Dispatch queues the job and the worker runs it, unlike Laravel's
syncdriver. - Priorities and delays. Jobs come out by priority, and a job that is not due yet waits.
- Zero dependencies. It adds nothing to
Naravel.Queue. - State per store name. Each store name keeps its own jobs, so two stores in one process never mix them.
Quick start
{
"NaravelQueue": {
"Default": "local",
"Stores": { "local": { "Driver": "memory" } }
}
}
using Naravel.Queue.Extensions;
using Naravel.Queue.Memory;
builder.Services.AddQueue(builder.Configuration).AddMemoryDriver(builder.Configuration);
builder.Services.AddQueueWorker();
The memory store has no settings. Jobs live in the process: they are gone when it stops, and a second process cannot see them. The jobs are kept per store name for the whole process, so two hosts in one process that use the same store name share them, which matters in tests. For jobs that must survive a restart or run on another machine, use another driver package; the job classes stay the same.
Related packages
| Package | Adds |
|---|---|
Naravel.Queue |
Jobs, retries with backoff, chaining, batching and the background worker |
Naravel.Queue.File |
JSON files on disk: durable, no external service |
Naravel.Queue.Redis |
Redis driver for jobs that must run on another machine |
Learn more
- Queue: English guide
- Changelog · Source and issues · MIT license
Part of Naravel: Laravel's names, .NET's type system. All Naravel packages share one version.
| 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. |
-
net10.0
- Naravel.Queue (>= 0.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Release notes: https://github.com/km-arc/Naravel/releases/tag/v0.2.0 - full history: https://github.com/km-arc/Naravel/blob/main/CHANGELOG.md