Skip to content
Docs Try Aspire

ValkeyResource.withDataBindMount

Method
📦 Aspire.Hosting.Valkey v13.2.0-preview.1.26159.1
interface ValkeyResource {
// ... omitted for brevity
withDataBindMount(
source: string,
isReadOnly?: boolean): ValkeyResource;
}

Signature

method withDataBindMount builder
Adds a data bind mount for Valkey and enables persistence
withDataBindMount(
source: string,
isReadOnly?: boolean): ValkeyResource
source string
isReadOnly boolean optional = False
ValkeyResource

Defined on

This method is defined on the following type: