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
namestringoptionalisReadOnly booleanoptional= FalseReturns
GarnetResource Applies to
This method applies to the following types: