ValkeyResource.withPersistence
Method
interface ValkeyResource { // ... omitted for brevity withPersistence( interval?: timespan, keysChangedThreshold?: number): ValkeyResource;}Signature
method
withPersistence builderConfigures a Valkey container resource for persistence.
withPersistence( interval?: timespan, keysChangedThreshold?: number): ValkeyResourceParameters
intervaltimespanoptionalThe interval between snapshot exports. Defaults to 60 seconds.keysChangedThreshold numberoptional= 1The number of key change operations required to trigger a snapshot at the interval. Defaults to 1.Returns
ValkeyResource Defined on
This method is defined on the following type: