Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 891 Bytes

File metadata and controls

32 lines (19 loc) · 891 Bytes

CommunityToolkit.Aspire.Hosting.Redis.Extensions library

This integration contains extensions for the Redis hosting package for Aspire.

The integration provides support for running DbGate to interact with the Redis database.

Getting Started

Install the package

In your AppHost project, install the package using the following command:

dotnet add package CommunityToolkit.Aspire.Hosting.Redis.Extensions

Example usage

Then, in the Program.cs file of AppHost, define an Redis resource, then call AddRedis:

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

Additional Information

https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-redis-extensions

Feedback & contributing

https://github.com/CommunityToolkit/Aspire