AspireRedisExtensions Class

Definition

Provides extension methods for registering Redis-related services in an IHostApplicationBuilder.

public static class AspireRedisExtensions
type AspireRedisExtensions = class
Public Module AspireRedisExtensions
Inheritance
AspireRedisExtensions

Methods

AddKeyedRedisClient(IHostApplicationBuilder, String, Action<StackExchangeRedisSettings>, Action<ConfigurationOptions>)

Registers StackExchange.Redis.IConnectionMultiplexer as a keyed singleton for the given name in the services provided by the builder. Enables retries, corresponding health check, logging, and telemetry.

AddRedisClient(IHostApplicationBuilder, String, Action<StackExchangeRedisSettings>, Action<ConfigurationOptions>)

Registers StackExchange.Redis.IConnectionMultiplexer as a singleton in the services provided by the builder. Enables retries, corresponding health check, logging, and telemetry.

Applies to