Soenneker.Redis.Dump
11.0.200
Prefix Reserved
dotnet add package Soenneker.Redis.Dump --version 11.0.200
NuGet\Install-Package Soenneker.Redis.Dump -Version 11.0.200
<PackageReference Include="Soenneker.Redis.Dump" Version="11.0.200" />
<PackageVersion Include="Soenneker.Redis.Dump" Version="11.0.200" />
<PackageReference Include="Soenneker.Redis.Dump" />
paket add Soenneker.Redis.Dump --version 11.0.200
#r "nuget: Soenneker.Redis.Dump, 11.0.200"
#:package Soenneker.Redis.Dump@11.0.200
#addin nuget:?package=Soenneker.Redis.Dump&version=11.0.200
#tool nuget:?package=Soenneker.Redis.Dump&version=11.0.200
Soenneker.Redis.Dump
Exports Redis keys and TTLs to a portable JSON file and restores that file into a Redis database.
Installation
dotnet add package Soenneker.Redis.Dump
Registration
using Soenneker.Redis.Dump.Registrars;
services.AddRedisDumpUtilAsSingleton();
Both registrars use a singleton IRedisClient, so a scoped dump utility can be destroyed without closing the application's shared Redis connections.
Export and import
using Soenneker.Redis.Dump.Abstract;
IRedisDumpUtil dump = serviceProvider.GetRequiredService<IRedisDumpUtil>();
int exported = await dump.CloneToDisk(
"backups/redis.json",
sourceConnectionString,
cancellationToken);
int imported = await dump.ImportFromDisk(
"backups/redis.json",
destinationConnectionString,
cancellationToken);
Export scans writable endpoints, stores Redis's serialized value for each key, and preserves positive TTLs. The destination file is replaced only after the complete JSON document has been written.
Import overwrites matching keys using atomic per-key RESTORE ... REPLACE operations. It does not delete destination-only keys, and the overall import is not a cross-key transaction. The return value is the number of successfully restored keys; malformed individual entries are logged and skipped. Connection, file, cancellation, and unsupported-format failures are thrown to the caller.
The Redis account needs permission for SCAN, DUMP, PTTL, and RESTORE. The shared Soenneker Redis client also enables StackExchange.Redis administrative commands for server-utility compatibility, so restrict its credentials and network access appropriately.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Arrays.Bytes (>= 11.0.81)
- Soenneker.Redis.Client (>= 11.0.2399)
- Soenneker.Utils.Json (>= 11.0.2789)
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 |
|---|---|---|
| 11.0.200 | 0 | 11/15/2026 |
| 11.0.199 | 0 | 11/14/2026 |
| 11.0.198 | 66 | 11/12/2026 |
| 11.0.196 | 71 | 11/11/2026 |
| 11.0.195 | 70 | 11/11/2026 |
| 11.0.194 | 75 | 11/11/2026 |
| 11.0.192 | 69 | 11/11/2026 |
| 11.0.191 | 68 | 11/11/2026 |
| 11.0.190 | 69 | 11/11/2026 |
| 11.0.189 | 70 | 11/11/2026 |
| 11.0.188 | 96 | 11/3/2026 |
| 11.0.187 | 90 | 11/3/2026 |
| 11.0.186 | 86 | 11/3/2026 |
| 11.0.185 | 89 | 11/3/2026 |
| 11.0.183 | 88 | 11/3/2026 |
| 11.0.182 | 88 | 11/3/2026 |
| 11.0.181 | 89 | 11/2/2026 |
| 11.0.180 | 108 | 10/30/2026 |
| 11.0.179 | 93 | 10/29/2026 |
| 11.0.178 | 99 | 10/27/2026 |
Update dependency Soenneker.Redis.Client to 11.0.2399 (#224)