Skip to content
Docs Try Aspire

ValkeyResource Properties

Class Properties 6 members
A resource that represents a Valkey resource independent of the hosting model.
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string expression for the Valkey server.
public ReferenceExpression ConnectionStringExpression { get; }
Host Section titled Host EndpointReferenceExpression
Gets the host endpoint reference for this resource.
public EndpointReferenceExpression Host { get; }
PasswordParameter Section titled PasswordParameter nullable ParameterResource?
Gets the parameter that contains the Valkey server password.
public ParameterResource? PasswordParameter { get; }
Port Section titled Port EndpointReferenceExpression
Gets the port endpoint reference for this resource.
public EndpointReferenceExpression Port { get; }
PrimaryEndpoint Section titled PrimaryEndpoint EndpointReference
Gets the primary endpoint for the Valkey server.
public EndpointReference PrimaryEndpoint { get; }
UriExpression Section titled UriExpression ReferenceExpression
Gets the connection URI expression for the Valkey server.
public ReferenceExpression UriExpression { get; }
Format: valkey://[:{password}@]{host}:{port}. The password segment is omitted when no password is configured.