Aspire.Hosting.Redis 9.0.0

Prefix Reserved
Additional Details

This version is out of support and is no longer maintained. Please upgrade to the latest version. See our support policy for details: https://aka.ms/dotent/aspire/support

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aspire.Hosting.Redis --version 9.0.0
                    
NuGet\Install-Package Aspire.Hosting.Redis -Version 9.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="Aspire.Hosting.Redis" Version="9.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspire.Hosting.Redis" Version="9.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Aspire.Hosting.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 Aspire.Hosting.Redis --version 9.0.0
                    
#r "nuget: Aspire.Hosting.Redis, 9.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 Aspire.Hosting.Redis@9.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=Aspire.Hosting.Redis&version=9.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Aspire.Hosting.Redis&version=9.0.0
                    
Install as a Cake Tool

Aspire.Hosting.Redis library

Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a Redis resource.

Getting started

Install the package

In your AppHost project, install the .NET Aspire Redis Hosting library with NuGet:

dotnet add package Aspire.Hosting.Redis

Usage example

Then, in the Program.cs file of AppHost, add a Redis resource and consume the connection using the following methods:

var redis = builder.AddRedis("redis");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(redis);

Additional documentation

Feedback & contributing

https://github.com/dotnet/aspire

*Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd.

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 (9)

Showing the top 5 NuGet packages that depend on Aspire.Hosting.Redis:

Package Downloads
Aspire.Hosting.Azure.Redis

Azure Redis resource types for Aspire.

Aspire.Hosting.AWS

Add support for provisioning AWS application resources and configuring the AWS SDK for .NET.

CommunityToolkit.Aspire.Hosting.Redis.Extensions

An Aspire integration for extending redis hosting.

FonsecaFramework.Aspire

Collection of classes and extensions for .NET Aspire

Hexalith.Infrastructure.AspireService.Hosting

Hexalith is a set of libraries to build a micro-service architecture.

GitHub repositories (34)

Showing the top 20 popular GitHub repositories that depend on Aspire.Hosting.Redis:

Repository Stars
dotnet/orleans
Cloud Native application framework for .NET
dotnet/eShop
A reference .NET application implementing an eCommerce site
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 10 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
exceptionless/Exceptionless
Exceptionless application
FoundatioFx/Foundatio
Pluggable foundation blocks for building distributed apps.
meysamhadeli/booking-microservices
A practical microservices with the latest technologies and architectures like Vertical Slice Architecture, Event Sourcing, CQRS, DDD, gRpc, MongoDB, RabbitMq, Masstransit, and Aspire in .Net 10.
abpframework/abp-samples
Sample solutions built with the ABP Framework
dotnet/aspire-samples
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
CommunityToolkit/Aspire
A community project with additional components and extensions for Aspire
meysamhadeli/booking-modular-monolith
A practical Modular Monolith architecture with the latest technologies and architecture like Vertical Slice Architecture, Event Driven Architecture, CQRS, DDD, gRpc, Masstransit, and Aspire in .Net 10.
mehmetozkaya/Design-Microservices-Architecture-with-Patterns-Principles
Design Microservices Architecture with Patterns & Principles. Design Microservices Architecture with Design Patterns, Principles and the Best Practices. How to handle millions of request with designing system for high availability, high scalability, low latency, and resilience to network failures on distributed microservices.
thangchung/practical-dotnet-aspire
The practical .NET Aspire builds on the coffeeshop app business domain
J-Tech-Japan/Sekiban
Sekiban - an Opinionated Event Sourcing and CQRS Framework using C#. It can store data into Azure Cosmos DB, AWS Dynamo DB or Postgres
davidfowl/aspire-ai-chat-demo
Aspire AI Chat is a full-stack chat sample that combines modern technologies to deliver a ChatGPT-like experience.
daohainam/microservice-patterns
Microservice pattern demos (Saga, EventSourcing, CQRS...) running on .NET Aspire
poorna-soysa/grpc-demo
This repository contains a sample application built with .NET 8, demonstrating the use of gRPC for high-performance remote procedure calls
alex289/CleanArchitecture
Sample .NET 10 API project including Clean Architecture principles, Onion Architecture, MediatR, and Entity Framework with unit and integration tests using xUnit
Version Downloads Last Updated
13.1.2 24,389 2/26/2026
13.1.1 68,327 2/11/2026
13.1.0 331,539 12/17/2025
13.0.2 72,416 12/4/2025
13.0.1 47,136 11/26/2025 13.0.1 is deprecated because it is no longer maintained.
13.0.0 115,248 11/11/2025 13.0.0 is deprecated because it is no longer maintained.
9.5.2 202,771 10/23/2025 9.5.2 is deprecated because it is no longer maintained.
9.5.1 178,819 10/3/2025 9.5.1 is deprecated because it is no longer maintained.
9.5.0 78,248 9/25/2025 9.5.0 is deprecated because it is no longer maintained.
9.4.2 133,558 9/2/2025 9.4.2 is deprecated because it is no longer maintained.
9.4.1 107,136 8/12/2025 9.4.1 is deprecated because it is no longer maintained.
9.4.0 86,713 7/29/2025 9.4.0 is deprecated because it is no longer maintained.
9.3.1 255,839 6/10/2025 9.3.1 is deprecated because it is no longer maintained.
9.3.0 150,757 5/19/2025 9.3.0 is deprecated because it is no longer maintained.
9.2.1 77,305 4/24/2025 9.2.1 is deprecated because it is no longer maintained.
9.2.0 84,829 4/10/2025 9.2.0 is deprecated because it is no longer maintained.
9.1.0 187,453 2/25/2025 9.1.0 is deprecated because it is no longer maintained.
9.0.0 398,013 11/12/2024 9.0.0 is deprecated because it is no longer maintained.
9.0.0-rc.1.24511.1 13,652 10/15/2024 9.0.0-rc.1.24511.1 is deprecated because it is no longer maintained.
8.2.2 54,663 10/24/2024 8.2.2 is deprecated because it is no longer maintained.
Loading failed