CoreSystem.Redis 1.0.0

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

CoreSystem.Redis

CoreSystem.Redis is a lightweight Redis infrastructure library for .NET 8 built on top of StackExchange.Redis.

It provides reusable components for connection management and distributed synchronization, making it easy to build reliable cloud-native applications and reusable libraries.

NuGet Downloads License .NET Redis

Features

  • ✅ Redis Connection Factory
  • ✅ Distributed Lock Provider
  • ✅ Dependency Injection integration
  • ✅ Production-ready default configuration
  • ✅ Configurable ConfigurationOptions
  • ✅ Built on StackExchange.Redis
  • ✅ Designed for reuse across multiple libraries

Installation

dotnet add package Core.Redis

Quick Start

Register the library:

builder.Services.AddCoreRedis();

Create a Redis connection:

builder.Services.AddSingleton<IConnectionMultiplexer>(sp =>
{
    var factory = sp.GetRequiredService<IRedisConnectionFactory>();

    return factory.Create(options =>
    {
        options.EndPoints.Add("localhost:6379");
    });
});

Use distributed locks:

public sealed class OrderService(
    IDistributedLockProvider lockProvider)
{
    public async Task ProcessAsync(Guid id)
    {
        await using var handle =
            await lockProvider.AcquireAsync($"orders:{id}");

        // Critical section
    }
}

Included Components

Component Description


IRedisConnectionFactory Creates Redis connections. RedisConnectionFactory Applies production-ready defaults. IDistributedLockProvider Abstraction for distributed locking. RedisLockProvider Redis-based lock implementation. RedisLockOptions Lock configuration options.

Designed For

  • ASP.NET Core applications
  • Distributed systems
  • Microservices
  • Background services
  • Shared infrastructure libraries

Ecosystem

CoreSystem.Redis is the Redis infrastructure layer for the CoreSystem ecosystem and is designed to be reused by libraries such as:

  • CoreSystem.Cache
  • CoreSystem.Idempotency
  • Future CoreSystem components

License

MIT License.

Product 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 was computed.  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 was computed.  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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on CoreSystem.Redis:

Package Downloads
CoreSystem.Cache

Distributed cache abstraction for .NET 8 supporting Redis and In-Memory providers, with native OpenTelemetry integration.

CoreSystem.Idempotency

Production-ready idempotency framework for ASP.NET Core that guarantees exactly-once request processing with Redis and PostgreSQL providers, request fingerprinting, response replay, and native OpenTelemetry support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 131 7/7/2026

Initial stable release.
 • Redis Connection Factory
 • Distributed Lock Provider
 • Dependency Injection integration
 • Production-ready defaults