Skip to content
Docs Try Aspire

withDataBindMount

Function
📦 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

Applies to

This function is an extension method on the following types: