# AzureRedisCacheResource Constructors

- Package: [Aspire.Hosting.Azure.Redis](/reference/api/csharp/aspire.hosting.azure.redis.md)
- Type: [AzureRedisCacheResource](/reference/api/csharp/aspire.hosting.azure.redis/azurerediscacheresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure Cache for Redis resource.

## AzureRedisCacheResource(string, Action<AzureResourceInfrastructure>)

- Name: `Constructor(string, Action<AzureResourceInfrastructure>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Redis/AzureRedisCacheResource.cs#L19)

Represents an Azure Cache for Redis resource.

```csharp
public class AzureRedisCacheResource
{
    public AzureRedisCacheResource(
        string name,
        Action<AzureResourceInfrastructure> configureInfrastructure)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  Callback to configure the Azure resources.
