Skip to content
Docs Try Aspire

RedisResource.withDataVolume

Method
📦 Aspire.Hosting.Redis v13.2.0-preview.1.26159.1
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

Defined on

This method is defined on the following type: