Skip to content
DocsTry Aspire
DocsTry

AzureRedisCacheResource Properties

ClassProperties6 members
Represents an Azure Cache for Redis resource.
AnnotationsSection titled AnnotationsoverrideResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection string template for the manifest for the Azure Cache for Redis resource.
public ReferenceExpression ConnectionStringExpression { get; }
HostNameSection titled HostNameReferenceExpression
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.
NameOutputReferenceSection titled NameOutputReferenceBicepOutputReference
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }
PasswordSection titled PasswordnullableReferenceExpression?
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.
UseAccessKeyAuthenticationSection titled UseAccessKeyAuthenticationbool
Gets a value indicating whether the resource uses access key authentication.
public bool UseAccessKeyAuthentication { get; }