ValkeyResource.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
ValkeyResourceDefined on
This method is defined on the following type: