# AzureRedisResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Redis](/reference/api/csharp/aspire.hosting.azure.redis.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Redis/AzureRedisResource.cs)
- Inherits: `AzureProvisioningResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

Represents an Azure Redis resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureRedisResource
    : Aspire.Hosting.Azure.AzureProvisioningResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [AzureRedisResource(RedisResource, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.redis/azureredisresource/constructors.md#constructor-redisresource-action-azureresourceinfrastructure) -- Represents an Azure Redis resource.

## Properties

- [Annotations](/reference/api/csharp/aspire.hosting.azure.redis/azureredisresource/properties.md#annotations) : `ResourceAnnotationCollection` `get`
- [ConnectionString](/reference/api/csharp/aspire.hosting.azure.redis/azureredisresource/properties.md#connectionstring) : `BicepSecretOutputReference` `get` -- Gets the "connectionString" output reference from the bicep template for the Azure Redis resource.
- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.azure.redis/azureredisresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string template for the manifest for the Azure Redis resource.
- [Name](/reference/api/csharp/aspire.hosting.azure.redis/azureredisresource/properties.md#name) : `string` `get`
