CoreSystem.Redis
1.0.0
dotnet add package CoreSystem.Redis --version 1.0.0
NuGet\Install-Package CoreSystem.Redis -Version 1.0.0
<PackageReference Include="CoreSystem.Redis" Version="1.0.0" />
<PackageVersion Include="CoreSystem.Redis" Version="1.0.0" />
<PackageReference Include="CoreSystem.Redis" />
paket add CoreSystem.Redis --version 1.0.0
#r "nuget: CoreSystem.Redis, 1.0.0"
#:package CoreSystem.Redis@1.0.0
#addin nuget:?package=CoreSystem.Redis&version=1.0.0
#tool nuget:?package=CoreSystem.Redis&version=1.0.0
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.
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 | Versions 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. |
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- StackExchange.Redis (>= 2.13.1)
NuGet packages (1)
Showing the top 1 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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 130 | 7/7/2026 |
Initial stable release.
• Redis Connection Factory
• Distributed Lock Provider
• Dependency Injection integration
• Production-ready defaults