Skip to content
Docs Try Aspire
Docs Try

withPersistence

Method
📦 Aspire.Hosting.Valkey v13.4.0
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): ValkeyResource
interval timespan optional
keysChangedThreshold number optional = 1
ValkeyResource

Applies to

This method applies to the following types: