Skip to content
Docs Try Aspire
Docs Try

RedisResource.withDataBindMount

Method
📦 Aspire.Hosting.Redis v13.4.0
interface RedisResource {
// ... omitted for brevity
withDataBindMount(
source: string,
isReadOnly?: boolean): RedisResource;
}

Signature

method withDataBindMount builder
Adds a bind mount for the data folder to a Redis container resource and enables Redis persistence.
withDataBindMount(
source: string,
isReadOnly?: boolean): RedisResource
source string
isReadOnly boolean optional = False
RedisResource

Defined on

This method is defined on the following type: