Skip to content
DocsTry Aspire
DocsTry

ValkeyResource.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

Defined on

This method is defined on the following type: