Skip to content
Docs Try Aspire
Docs Try

withDataVolume

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

Signature

method withDataVolume builder
Adds a named volume for the data folder to a Redis container resource and enables Redis persistence.
withDataVolume(
name?: string,
isReadOnly?: boolean): RedisResource
name string optional
isReadOnly boolean optional = False
RedisResource

Applies to

This method applies to the following types: