Skip to content
Docs Try Aspire

withDataVolume

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

Applies to

This function is an extension method on the following types: