Skip to content
DocsTry Aspire
DocsTry

GarnetResource Properties

ClassProperties6 members
A resource that represents a Garnet resource independent of the hosting model.
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection string expression for the Garnet server.
public ReferenceExpression ConnectionStringExpression { get; }
HostSection titled HostEndpointReferenceExpression
Gets the host endpoint reference for this resource.
public EndpointReferenceExpression Host { get; }
PasswordParameterSection titled PasswordParameternullableParameterResource?
Gets the parameter that contains the Garnet server password.
public ParameterResource? PasswordParameter { get; }
PortSection titled PortEndpointReferenceExpression
Gets the port endpoint reference for this resource.
public EndpointReferenceExpression Port { get; }
PrimaryEndpointSection titled PrimaryEndpointEndpointReference
Gets the primary endpoint for the Garnet server.
public EndpointReference PrimaryEndpoint { get; }
UriExpressionSection titled UriExpressionReferenceExpression
Gets the connection URI expression for the Garnet server.
public ReferenceExpression UriExpression { get; }
Format: redis://[:{password}@]{host}:{port}. The password segment is omitted when no password is configured.