Redis® support for Aspire.
$ dotnet add package Aspire.Hosting.RedisProvides extension methods and resource definitions for a .NET Aspire AppHost to configure a Redis resource.
In your AppHost project, install the .NET Aspire Redis Hosting library with NuGet:
dotnet add package Aspire.Hosting.Redis
Then, in the AppHost.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);
https://github.com/dotnet/aspire
*Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd.