# AspireRedisClientBuilder

- Kind: `class`
- Package: [Aspire.StackExchange.Redis](/reference/api/csharp/aspire.stackexchange.redis.md)
- Version: `13.4.0`
- Namespace: `Aspire.StackExchange.Redis`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.StackExchange.Redis/AspireRedisClientBuilder.cs)

Provides a builder for configuring Redis client services using StackExchange.Redis in an Aspire application.

## Definition

```csharp
namespace Aspire.StackExchange.Redis;

public sealed class AspireRedisClientBuilder
{
    // ...
}
```

## Constructors

- [AspireRedisClientBuilder(IHostApplicationBuilder, StackExchangeRedisSettings, string?)](/reference/api/csharp/aspire.stackexchange.redis/aspireredisclientbuilder/constructors.md#constructor-ihostapplicationbuilder-stackexchangeredissettings-string) -- Provides a builder for configuring Redis client services using StackExchange.Redis in an Aspire application.

## Properties

- [HostBuilder](/reference/api/csharp/aspire.stackexchange.redis/aspireredisclientbuilder/properties.md#hostbuilder) : `IHostApplicationBuilder` `get` -- Gets the `Hosting.IHostApplicationBuilder` with which services are being registered.
- [ServiceKey](/reference/api/csharp/aspire.stackexchange.redis/aspireredisclientbuilder/properties.md#servicekey) : `string?` `get` -- Gets the service key used to register the `Redis.IConnectionMultiplexer` service, if any.
- [Settings](/reference/api/csharp/aspire.stackexchange.redis/aspireredisclientbuilder/properties.md#settings) : [StackExchangeRedisSettings](/reference/api/csharp/aspire.stackexchange.redis/stackexchangeredissettings.md) `get` -- Gets the [StackExchangeRedisSettings](/reference/api/csharp/aspire.stackexchange.redis/stackexchangeredissettings.md) used to configure the Redis client.
