-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
Description
Summary
Aspire 9.5 introduced a new Redis client builder pattern with fluent configuration for distributed caching and Azure authentication. Not documented in redis-integration.
What's Missing
From what's-new-in-aspire-95:
Basic Usage
var builder = WebApplication.CreateBuilder(args);
builder.AddRedisClientBuilder("redis")
.WithDistributedCache(options => {
options.InstanceName = "MyApp";
});Azure Authentication
// Requires Aspire.Microsoft.Azure.StackExchangeRedis package
builder.AddRedisClientBuilder("redis")
.WithAzureAuthentication()
.WithDistributedCache(options => {
options.InstanceName = "MyApp";
});Auto Activation
// Auto activation is disabled by default, enable with:
builder.AddRedisClient("redis", c => c.DisableAutoActivation = false);Suggested Content
Add to redis-integration doc, Client integration section:
- Client builder pattern -
AddRedisClientBuilderfluent API - Distributed caching -
WithDistributedCacheconfiguration - Output caching -
WithOutputCacheif supported - Azure authentication -
WithAzureAuthenticationwith separate package - Auto activation -
DisableAutoActivationoption
Reactions are currently unavailable