Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddGarnet

Method
📦 Aspire.Hosting.Garnet v17.0.0
func (DistributedApplicationBuilder) AddGarnet(
name string,
options ...*AddGarnetOptions,
) GarnetResource

Signature

methodAddGarnetbuilder
Adds a Garnet container resource to the application model.
AddGarnet(
name string,
options ...*AddGarnetOptions,
) GarnetResource
namestring
options...*AddGarnetOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddGarnetOptions argument.

Port*float64
Password*ParameterResource
GarnetResource

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder