Skip to content
Docs Try Aspire
Docs Try

withDataVolume

Method
📦 Aspire.Hosting.Garnet v13.3.0
interface GarnetResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): GarnetResource;
}

Signature

method withDataVolume builder
Adds a persistent data volume to the Garnet resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): GarnetResource
name string optional
isReadOnly boolean optional = False
GarnetResource

Applies to

This method applies to the following types: