WithPersistence
Method
func (GarnetResource) WithPersistence(options ...*WithPersistenceOptions) GarnetResourceSignature
method
WithPersistence builderConfigures a Garnet container resource for persistence.
WithPersistence(options ...*WithPersistenceOptions) GarnetResourceParameters
options...*WithPersistenceOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithPersistenceOptions argument.
Interval*float64The interval between snapshot exports. Defaults to 60 seconds.Returns
GarnetResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: