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
intervaltimespanoptionalkeysChangedThreshold numberoptional= 1Returns
ValkeyResource Applies to
This method applies to the following types: