withDataVolume
Method
interface ValkeyResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): ValkeyResource;}Signature
method
withDataVolumebuilderAdds a named volume for the data folder to a Valkey container resource and enables Valkey persistence.
withDataVolume( name?: string, isReadOnly?: boolean): ValkeyResourceParameters
namestringoptionalisReadOnlybooleanoptional= FalseReturns
ValkeyResourceApplies to
This method applies to the following types: