addValkey

Method
📦 Aspire.Hosting.Valkey v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addValkey(
name: string,
port?: number,
password?: ParameterResource): ValkeyResource;
}

Signature

methodaddValkeybuilder
Adds a Valkey container to the application model.
addValkey(
name: string,
port?: number,
password?: ParameterResource): ValkeyResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
portnumberoptionalThe host port to bind the underlying container to.
passwordParameterResourceoptionalThe parameter used to provide the password for the Valkey resource. If `null` a random password will be generated.
ValkeyResource

Applies to

This method applies to the following types: