Skip to content
DocsTry Aspire
DocsTry

StackExchangeRedisSettings Properties

ClassProperties4 members
Provides the client configuration settings for connecting to a Redis server.
ConnectionStringSection titled ConnectionStringnullablestring?
Gets or sets the comma-delimited configuration string used to connect to the Redis server.
public string? ConnectionString { get; set; }
DisableAutoActivationSection titled DisableAutoActivationbool
Gets or sets a boolean value that indicates whether auto activation is disabled or not.
public bool DisableAutoActivation { get; set; }
When auto activation is enabled, the Redis connection is established at startup time rather than on first use, which prevents blocking threads when the connection is first requested from the DI container.
DisableHealthChecksSection titled DisableHealthChecksbool
Gets or sets a boolean value that indicates whether the Redis health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }