Skip to content
Docs Try Aspire

GarnetResource.withDataVolume

Method
📦 Aspire.Hosting.Garnet v13.2.0-preview.1.26159.1
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

Defined on

This method is defined on the following type: