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