addValkey
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addValkey( name: string, port?: number, password?: ParameterResource): ValkeyResource;}Signature
method
addValkey builderAdds a Valkey container to the application model.
addValkey( name: string, port?: number, password?: ParameterResource): ValkeyResourceParameters
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.passwordParameterResource optionalThe parameter used to provide the password for the Valkey resource. If `null` a random password will be generated.Returns
ValkeyResource Applies to
This method applies to the following types: