RedisResource.withDataBindMount
Method
interface RedisResource { // ... omitted for brevity withDataBindMount( source: string, isReadOnly?: boolean): RedisResource;}Signature
method
withDataBindMount builderAdds a bind mount for the data folder to a Redis container resource and enables Redis persistence.
withDataBindMount( source: string, isReadOnly?: boolean): RedisResourceParameters
sourcestringThe source directory on the host to mount into the container.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only mount. Setting this to `true` will disable Redis persistence. Defaults to `false`.Returns
RedisResource Defined on
This method is defined on the following type: