# StackExchangeRedisSettings Properties

- Package: [Aspire.StackExchange.Redis](/reference/api/csharp/aspire.stackexchange.redis.md)
- Type: [StackExchangeRedisSettings](/reference/api/csharp/aspire.stackexchange.redis/stackexchangeredissettings.md)
- Kind: `Properties`
- Members: `4`

Provides the client configuration settings for connecting to a Redis server.

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.StackExchange.Redis/StackExchangeRedisSettings.cs)

Gets or sets the comma-delimited configuration string used to connect to the Redis server.

```csharp
public string? ConnectionString { get; set; }
```

## DisableAutoActivation

- Name: `DisableAutoActivation`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.StackExchange.Redis/StackExchangeRedisSettings.cs)

Gets or sets a boolean value that indicates whether auto activation is disabled or not.

```csharp
public bool DisableAutoActivation { get; set; }
```

## Remarks

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

- Name: `DisableHealthChecks`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.StackExchange.Redis/StackExchangeRedisSettings.cs)

Gets or sets a boolean value that indicates whether the Redis health check is disabled or not.

```csharp
public bool DisableHealthChecks { get; set; }
```

## DisableTracing

- Name: `DisableTracing`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.StackExchange.Redis/StackExchangeRedisSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.

```csharp
public bool DisableTracing { get; set; }
```
