withDataVolume
Method
interface ValkeyResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): ValkeyResource;}Signature
method
withDataVolume builder Adds a data volume for Valkey and enables 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: