withDataVolume
Method
interface GarnetResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): GarnetResource;}Signature
method
withDataVolume builder Adds a named volume for the data folder to a Garnet container resource and enables Garnet persistence.
withDataVolume( name?: string, isReadOnly?: boolean): GarnetResourceParameters
name string optional isReadOnly boolean optional = False Returns
GarnetResource Applies to
This method applies to the following types: