Foundatio.Redis
13.0.0-beta3
Prefix Reserved
dotnet add package Foundatio.Redis --version 13.0.0-beta3
NuGet\Install-Package Foundatio.Redis -Version 13.0.0-beta3
<PackageReference Include="Foundatio.Redis" Version="13.0.0-beta3" />
<PackageVersion Include="Foundatio.Redis" Version="13.0.0-beta3" />
<PackageReference Include="Foundatio.Redis" />
paket add Foundatio.Redis --version 13.0.0-beta3
#r "nuget: Foundatio.Redis, 13.0.0-beta3"
#:package Foundatio.Redis@13.0.0-beta3
#addin nuget:?package=Foundatio.Redis&version=13.0.0-beta3&prerelease
#tool nuget:?package=Foundatio.Redis&version=13.0.0-beta3&prerelease
Pluggable foundation blocks for building loosely coupled distributed apps.
โจ Why Choose Foundatio?
- ๐ Pluggable implementations - Swap Redis, Azure, AWS, or in-memory with no code changes
- ๐งช Developer friendly - In-memory implementations for fast local development and testing
- ๐ DI native - Built for Microsoft.Extensions.DependencyInjection
- ๐ฏ Interface-first - Code against abstractions, not implementations
- โก Production ready - Battle-tested in high-scale applications
- ๐ Consistent APIs - Same patterns across caching, queues, storage, and more
๐งฑ Core Building Blocks
| Feature | Description |
|---|---|
| Caching | In-memory, Redis, and hybrid caching with automatic invalidation |
| Queues | Reliable message queuing with Redis, Azure, AWS SQS |
| Locks | Distributed locking and throttling |
| Messaging | Pub/sub with Redis, RabbitMQ, Kafka, Azure Service Bus |
| Jobs | Background job processing with queue integration |
| File Storage | Unified file API for disk, S3, Azure Blob, and more |
| Resilience | Retry policies, circuit breakers, and timeouts |
๐ Quick Start
dotnet add package Foundatio.Redis
// Caching
var muxer = await ConnectionMultiplexer.ConnectAsync("localhost");
ICacheClient cache = new RedisCacheClient(o => o.ConnectionMultiplexer(muxer));
await cache.SetAsync("user:123", user, TimeSpan.FromMinutes(5));
var cached = await cache.GetAsync<User>("user:123");
// Queuing
IQueue<WorkItem> queue = new RedisQueue<WorkItem>(o => o.ConnectionMultiplexer(muxer));
await queue.EnqueueAsync(new WorkItem { Data = "Hello" });
var entry = await queue.DequeueAsync();
// Messaging
IMessageBus messageBus = new RedisMessageBus(o => o.Subscriber(muxer.GetSubscriber()));
await messageBus.PublishAsync(new MyMessage { Data = "Hello" });
// File Storage
IFileStorage storage = new RedisFileStorage(o => o.ConnectionMultiplexer(muxer));
await storage.SaveFileAsync("docs/readme.txt", "Hello World");
๐ฆ Provider Implementations
| Provider | Caching | Queues | Messaging | Storage | Locks |
|---|---|---|---|---|---|
| In-Memory | โ | โ | โ | โ | โ |
| Redis | โ | โ | โ | โ | โ |
| Azure Storage | โ | โ | |||
| Azure Service Bus | โ | โ | |||
| AWS (S3/SQS/SNS) | โ | โ | โ | ||
| RabbitMQ | โ | ||||
| Kafka | โ | ||||
| Minio | โ | ||||
| Aliyun | โ | ||||
| SFTP | โ |
๐ Learn More
Core Features
- Getting Started - Installation and setup
- Caching - In-memory, Redis, and hybrid caching with invalidation
- Queues - FIFO message delivery with lock renewal and retry policies
- Locks - Distributed locking with null handling patterns
- Messaging - Pub/sub with size limits and notification patterns
- File Storage - Unified file API across providers
- Jobs - Background job processing and hosted service integration
Advanced Topics
- Resilience - Retry policies, circuit breakers, and timeouts
- Serialization - Serializer configuration and performance
- Dependency Injection - DI setup and patterns
- Configuration - Options and settings
๐ฆ CI Packages (Feedz)
Want the latest CI build before it hits NuGet? Add the Feedz source and install the pre-release version:
dotnet nuget add source https://f.feedz.io/foundatio/foundatio/nuget -n foundatio-feedz
dotnet add package Foundatio.Redis --prerelease
Or add to your NuGet.config:
<configuration>
<packageSources>
<add key="foundatio-feedz" value="https://f.feedz.io/foundatio/foundatio/nuget" />
</packageSources>
<packageSourceMapping>
<packageSource key="foundatio-feedz">
<package pattern="Foundatio.*" />
</packageSource>
</packageSourceMapping>
</configuration>
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request. See our documentation for development guidelines.
Development Setup:
- Clone the repository
- Open
Foundatio.Redis.slnxin Visual Studio or VS Code - Run
dotnet buildto build - Run
dotnet testto run tests
๐ License
Apache 2.0 License
Thanks to all the people who have contributed
| 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 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. |
-
net10.0
- Foundatio (>= 13.0.0-beta3)
- StackExchange.Redis (>= 2.11.0)
-
net8.0
- Foundatio (>= 13.0.0-beta3)
- StackExchange.Redis (>= 2.11.0)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Foundatio.Redis:
| Package | Downloads |
|---|---|
|
SoftwarePioniere.Fx.Redis
Package Description |
|
|
Neolution.Extensions.Caching.RedisHybrid
Package Description |
|
|
SoftwarePioniere.Foundatio.Redis
Software Pioniere Fx Foundatio Redis Extensions |
|
|
HttpRequester
Multiple http clients |
|
|
Permian.Dal
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Foundatio.Redis:
| Repository | Stars |
|---|---|
|
exceptionless/Exceptionless
Exceptionless application
|
| Version | Downloads | Last Updated |
|---|---|---|
| 13.0.0-beta3 | 934 | 2/14/2026 |
| 13.0.0-beta1 | 321 | 1/12/2026 |
| 12.0.0 | 46,143 | 8/20/2025 |
| 11.1.0 | 25,572 | 5/9/2025 |
| 11.0.8 | 36,115 | 2/1/2025 |
| 11.0.6 | 31,450 | 11/26/2024 |
| 11.0.5 | 19,266 | 9/28/2024 |
| 11.0.4 | 10,212 | 9/27/2024 |
| 11.0.2 | 23,301 | 8/31/2024 |
| 10.7.1 | 4,126,481 | 3/27/2024 |
| 10.7.0 | 131,246 | 1/5/2024 |
| 10.6.1 | 289,300 | 6/23/2023 |
| 10.6.0 | 323,431 | 1/1/2023 |
| 10.5.0 | 79,803 | 5/18/2022 |
| 10.4.0 | 28,785 | 3/8/2022 |
| 10.3.0 | 15,426 | 1/20/2022 |
| 10.2.3 | 176,366 | 9/24/2021 |
| 10.2.2 | 10,451 | 9/23/2021 |
| 10.2.0 | 47,520 | 7/8/2021 |
| 10.1.0 | 19,631 | 6/16/2021 |