Share via


ValkeyBuilderExtensions Class

Definition

Provides extension methods for adding Valkey resources to the application model.

public static class ValkeyBuilderExtensions
type ValkeyBuilderExtensions = class
Public Module ValkeyBuilderExtensions
Inheritance
ValkeyBuilderExtensions

Methods

AddValkey(IDistributedApplicationBuilder, String, Nullable<Int32>)

Adds a Valkey container to the application model.

WithDataBindMount(IResourceBuilder<ValkeyResource>, String, Boolean)

Adds a bind mount for the data folder to a Valkey container resource and enables Valkey persistence.

WithDataVolume(IResourceBuilder<ValkeyResource>, String, Boolean)

Adds a named volume for the data folder to a Valkey container resource and enables Valkey persistence.

WithPersistence(IResourceBuilder<ValkeyResource>, Nullable<TimeSpan>, Int64)

Configures a Valkey container resource for persistence.

Applies to