Skip to content
Docs Try Aspire
Docs Try

withDataVolume

Method
📦 Aspire.Hosting.Azure.Redis v13.2.0
interface RedisResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): RedisResource;
}

Signature

method withDataVolume builder
Adds a data volume with persistence
withDataVolume(
name?: string,
isReadOnly?: boolean): RedisResource
name string optional
isReadOnly boolean optional = False
RedisResource

Applies to

This method applies to the following types: