Skip to content
Docs Try Aspire

ValkeyResource.withDataVolume

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

Defined on

This method is defined on the following type: