GarnetResource.withDataVolume
Method
interface GarnetResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): GarnetResource;}Signature
method
withDataVolume builderAdds a named volume for the data folder to a Garnet container resource and enables Garnet persistence.
withDataVolume( name?: string, isReadOnly?: boolean): GarnetResourceParameters
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only volume. Setting this to `true` will disable Garnet persistence. Defaults to `false`.Returns
GarnetResource Defined on
This method is defined on the following type: