Skip to content
Docs Try Aspire
Docs Try

RedisResource.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

Defined on

This method is defined on the following type: