Skip to content
DocsTry Aspire
DocsTry

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

Applies to

This method applies to the following types: