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

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
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
Loading failed

Update dependency Soenneker.Redis.Client to 11.0.2399 (#224)