Skip to content
Docs Try Aspire
Docs Try

addValkey

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

Signature

method addValkey builder
Adds a Valkey container to the application model.
addValkey(
name: string,
port?: number,
password?: ParameterResource): ValkeyResource
name string
port number optional
password ParameterResource optional
ValkeyResource

Applies to

This method applies to the following types: