Redis hosting extensions
このコンテンツはまだ日本語訳がありません。
⭐ Community Toolkit
Aspire CLI — CommunityToolkit.Aspire.Hosting.Redis.Extensions パッケージを追加 Aspire CLI — 出力例 C# — AppHost.cs XML — CommunityToolkit.Aspire.Hosting.Redis.Extensions パッケージ参照を追加
C# — AppHost.cs
The Aspire Community Toolkit Redis hosting extensions package provides extra functionality to the Aspire.Hosting.Redis hosting package.
This package provides the following features:
- DbGate management UI
Hosting integration
Section titled “Hosting integration”To get started with the Aspire Community Toolkit Redis hosting extensions, install the CommunityToolkit.Aspire.Hosting.Redis.Extensions NuGet package in the app host project.
aspire add communitytoolkit-redis-extensionsAspire CLI は対話的です。求められたら適切な結果を選択してください:
Select an integration to add:
> communitytoolkit-redis-extensions (CommunityToolkit.Aspire.Hosting.Redis.Extensions)> Other results listed as selectable options...#:package CommunityToolkit.Aspire.Hosting.Redis.Extensions@*<PackageReference Include="CommunityToolkit.Aspire.Hosting.Redis.Extensions" Version="*" />Add management UI
Section titled “Add management UI”DbGate management UI
Section titled “DbGate management UI”To add the DbGate management UI to your Redis resource, call the WithDbGate method on the RedisResource instance:
var builder = DistributedApplication.CreateBuilder(args);
var redis = builder.AddRedis("redis") .WithDbGate();
builder.AddProject<Projects.ExampleProject>() .WithReference(redis);
// After adding all resources, run the app...This adds a new DbGate resource to the app host which is available from the Aspire dashboard. DbGate is a comprehensive database management tool that provides a web-based interface for managing your Redis databases.