Skip to content
Docs Try Aspire

addGarnet

Function
📦 Aspire.Hosting.Garnet v13.2.0-preview.1.26159.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addGarnet(
name: string,
port?: number,
password?: ParameterResource): GarnetResource;
}

Signature

method addGarnet builder
Adds a Garnet container resource to the application model.
addGarnet(
name: string,
port?: number,
password?: ParameterResource): GarnetResource
name string
port number optional
password ParameterResource optional
GarnetResource

Applies to

This function is an extension method on the following types: