Soenneker.Redis.Util.Server
4.0.3058
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Redis.Util.Server --version 4.0.3058
NuGet\Install-Package Soenneker.Redis.Util.Server -Version 4.0.3058
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.Util.Server" Version="4.0.3058" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Redis.Util.Server" Version="4.0.3058" />
<PackageReference Include="Soenneker.Redis.Util.Server" />
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.Util.Server --version 4.0.3058
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Redis.Util.Server, 4.0.3058"
#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.Util.Server@4.0.3058
#: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.Util.Server&version=4.0.3058
#tool nuget:?package=Soenneker.Redis.Util.Server&version=4.0.3058
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Redis.Util.Server
A utility library that allows for Redis Server operations Warning - all of the methods in here are generally quite heavy and only should be used during special circumstances. Scoped IoC.
Install
dotnet add package Soenneker.Redis.Util.Server
Quick start
using Soenneker.Redis.Util.Server.Registrars;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
var result = services.AddRedisServerUtilAsSingleton();
Adds IRedisServerUtil as a singleton service.
What you get
IRedisServerUtil— A utility library that allows for Redis Server operations Warning - all of the methods in here are generally quite heavy and only should be used during special circumstances. Scoped IoC.RedisServerUtilRegistrar— A utility library for Redis server client accessibility.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
IRedisServerUtil.GetKeyValuesByPrefix(cacheKey, prefix, cancellationToken) |
Deserializes the results and builds a dictionary with the keys and values. | A task whose result is the requested dictionary. |
IRedisServerUtil.GetKeyValuesByPrefix(redisKeyPrefix, cancellationToken) |
Deserializes the results and builds a dictionary with the keys and values. | A task whose result is the requested dictionary. |
IRedisServerUtil.GetKeysByPrefixList(cacheKey, prefix, cancellationToken) |
Immediately resolves the Async IEnumerable. Gets all keys (not values) that begin with the prefix. | The matching keys as a materialized collection. |
IRedisServerUtil.GetKeysByPrefix(redisKeyPrefix, cancellationToken) |
Gets all keys (not values) that begin with the prefix. | A task whose result is the requested async Enumerable. |
IRedisServerUtil.RemoveByScan(redisKeyPrefix, shouldRemove, batchSize, cancellationToken) |
Scans primary Redis endpoints and removes matching keys in pipelined batches. | The number of keys removed. |
IRedisServerUtil.GetKeysByPrefixList(redisKeyPrefix, cancellationToken) |
Wraps GetKeysByPrefix(string, CancellationToken). Base method for GetKeysByPrefixList(string, CancellationToken). Immediately resolves the Async IEnumerable. |
The matching keys as a materialized collection. |
IRedisServerUtil.RemoveByPrefix(redisPrefixKey, fireAndForget, cancellationToken) |
Removes all keys that begin with the prefix. | A task that completes when the by prefix removal is complete. |
IRedisServerUtil.Flush(cancellationToken) |
Flushes redis Server. | A task that completes when the flush operation is complete. |
RedisServerUtilRegistrar.AddRedisServerUtilAsSingleton(services) |
Adds IRedisServerUtil as a singleton service. |
The same service collection, so additional registrations can be chained. |
RedisServerUtilRegistrar.AddRedisServerUtilAsScoped(services) |
Registers Redis Server Util with a scoped lifetime. | The same service collection, so additional registrations can be chained. |
Important behavior
IRedisServerUtil.GetKeysByPrefix(redisKeyPrefix, cancellationToken): Do not include asterisk!.IRedisServerUtil.RemoveByPrefix(redisPrefixKey, fireAndForget, cancellationToken): Do not include asterisk!.
Practical notes
- Cancellation stops pending work; it does not undo work that has already completed.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Redis.Client.Server (>= 4.0.2220)
- Soenneker.Redis.Util (>= 4.0.5367)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Redis.Util.Server:
| Package | Downloads |
|---|---|
|
Soenneker.Redis.Suite
A concoction of Redis utilities and libraries |
|
|
Soenneker.Hangfire.Redis.Util
Removes Hangfire job data directly from Redis while preserving selected jobs and infrastructure metadata |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.3074 | 0 | 9/1/2026 |
| 4.0.3073 | 0 | 9/1/2026 |
| 4.0.3072 | 0 | 9/1/2026 |
| 4.0.3071 | 0 | 9/1/2026 |
| 4.0.3070 | 0 | 8/31/2026 |
| 4.0.3069 | 16 | 8/31/2026 |
| 4.0.3068 | 22 | 8/31/2026 |
| 4.0.3067 | 30 | 8/31/2026 |
| 4.0.3066 | 37 | 8/31/2026 |
| 4.0.3065 | 74 | 8/31/2026 |
| 4.0.3064 | 81 | 8/31/2026 |
| 4.0.3063 | 71 | 8/30/2026 |
| 4.0.3062 | 69 | 8/30/2026 |
| 4.0.3061 | 92 | 8/30/2026 |
| 4.0.3060 | 105 | 8/30/2026 |
| 4.0.3059 | 75 | 8/30/2026 |
| 4.0.3058 | 63 | 8/30/2026 |
| 4.0.3057 | 113 | 8/29/2026 |
| 4.0.3056 | 74 | 8/29/2026 |
| 4.0.3054 | 155 | 8/27/2026 |
Loading failed
Update dependency Soenneker.Redis.Client.Server to 4.0.2220 (#3749)