Skip to content
Docs Try Aspire

AzureRedisCacheResource Properties

Class Properties 6 members
Represents an Azure Cache for Redis resource.
Annotations Section titled Annotations override ResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string template for the manifest for the Azure Cache for Redis resource.
public ReferenceExpression ConnectionStringExpression { get; }
HostName Section titled HostName ReferenceExpression
Gets the host name for the Redis server.
public ReferenceExpression HostName { get; }
In container mode, resolves to the container's primary endpoint host and port. In Azure mode, resolves to the Azure Redis server's hostname.
NameOutputReference Section titled NameOutputReference BicepOutputReference
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }
Password Section titled Password nullable ReferenceExpression?
Gets the password for the Redis server when running as a container.
public ReferenceExpression? Password { get; }
This property returns null when running in Azure mode, as Redis access is handled via connection strings. When running as a container, it resolves to the password parameter value if one exists.
UseAccessKeyAuthentication Section titled UseAccessKeyAuthentication bool
Gets a value indicating whether the resource uses access key authentication.
public bool UseAccessKeyAuthentication { get; }