Skip to content
Docs Try Aspire

StackExchangeRedisSettings Properties

Class Properties 4 members
Provides the client configuration settings for connecting to a Redis server.
ConnectionString Section titled ConnectionString nullable string?
Gets or sets the comma-delimited configuration string used to connect to the Redis server.
public string? ConnectionString { get; set; }
DisableAutoActivation Section titled DisableAutoActivation bool
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.
DisableHealthChecks Section titled DisableHealthChecks bool
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; }