Skip to content
Docs Try Aspire

withPersistence

Function
📦 Aspire.Hosting.Valkey v13.2.0-preview.1.26159.1
interface ValkeyResource {
// ... omitted for brevity
withPersistence(
interval?: timespan,
keysChangedThreshold?: number): ValkeyResource;
}

Signature

method withPersistence builder
Configures Valkey persistence
withPersistence(
interval?: timespan,
keysChangedThreshold?: number): ValkeyResource
interval timespan optional
keysChangedThreshold number optional = 1
ValkeyResource

Applies to

This function is an extension method on the following types: