Skip to content
DocsTry Aspire
DocsTry

GarnetResource.withDataVolume

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

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a Garnet container resource and enables Garnet persistence.
withDataVolume(
name?: string,
isReadOnly?: boolean): GarnetResource
namestringoptional
isReadOnlybooleanoptional= False
GarnetResource

Defined on

This method is defined on the following type: