Skip to content
Docs Try Aspire

withDataVolume

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

Signature

method withDataVolume builder
Adds a data volume for Valkey and enables persistence
withDataVolume(
name?: string,
isReadOnly?: boolean): ValkeyResource
name string optional
isReadOnly boolean optional = False
ValkeyResource

Applies to

This function is an extension method on the following types: