Skip to content
DocsTry Aspire
DocsTry

RedisResource.withDataVolume

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

Signature

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

Defined on

This method is defined on the following type: