Skip to content
DocsTry Aspire
DocsTry

withPersistence

Method
📦 Aspire.Hosting.Valkey v13.4.0
interface ValkeyResource {
// ... omitted for brevity
withPersistence(
interval?: timespan,
keysChangedThreshold?: number): ValkeyResource;
}

Signature

methodwithPersistencebuilder
Configures a Valkey container resource for persistence.
withPersistence(
interval?: timespan,
keysChangedThreshold?: number): ValkeyResource
intervaltimespanoptional
keysChangedThresholdnumberoptional= 1
ValkeyResource

Applies to

This method applies to the following types: