GarnetResource.WithPersistence

Method
📦 Aspire.Hosting.Garnet v17.0.0
type GarnetResource interface {
// ... omitted for brevity
WithPersistence(options ...*WithPersistenceOptions) GarnetResource
}

Signature

methodWithPersistencebuilder
Configures a Garnet container resource for persistence.
WithPersistence(options ...*WithPersistenceOptions) GarnetResource
options...*WithPersistenceOptionsOptional settings, described under Options.

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

Interval*float64The interval between snapshot exports. Defaults to 60 seconds.
GarnetResource

The resource builder.

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

Defined on

This method is defined on the following type: