withPersistence
Method
interface ValkeyResource { // ... omitted for brevity withPersistence( interval?: timespan, keysChangedThreshold?: number): ValkeyResource;}Signature
method
withPersistence builder Configures a Valkey container resource for persistence.
withPersistence( interval?: timespan, keysChangedThreshold?: number): ValkeyResourceParameters
interval timespan optional keysChangedThreshold number optional = 1 Returns
ValkeyResource Applies to
This method applies to the following types: