WithPersistence
Method
func (RedisResource) WithPersistence(options ...*WithPersistenceOptions) RedisResourceSignature
method
WithPersistence builderConfigures a Redis container resource for persistence.
WithPersistence(options ...*WithPersistenceOptions) RedisResourceParameters
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.KeysChangedThreshold *float64The number of key change operations required to trigger a snapshot at the interval. Defaults to 1.Returns
RedisResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: