withPersistence
Function
interface ValkeyResource { // ... omitted for brevity withPersistence( interval?: timespan, keysChangedThreshold?: number): ValkeyResource;}Signature
method
withPersistence builder Configures Valkey persistence
withPersistence( interval?: timespan, keysChangedThreshold?: number): ValkeyResourceParameters
interval timespan optional keysChangedThreshold number optional = 1 Returns
ValkeyResource Applies to
This function is an extension method on the following types: