Freigeben über


RedisBuilderExtensions Class

Definition

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

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

Methods

AddRedis(IDistributedApplicationBuilder, String, Nullable<Int32>)

Adds a Redis container to the application model.

WithDataBindMount(IResourceBuilder<RedisResource>, String, Boolean)

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

WithDataVolume(IResourceBuilder<RedisResource>, String, Boolean)

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

WithHostPort(IResourceBuilder<RedisCommanderResource>, Nullable<Int32>)

Configures the host port that the Redis Commander resource is exposed on instead of using randomly assigned port.

WithHostPort(IResourceBuilder<RedisInsightResource>, Nullable<Int32>)

Configures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.

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

Configures a Redis container resource for persistence.

WithRedisCommander(IResourceBuilder<RedisResource>, Action<IResourceBuilder<RedisCommanderResource>>, String)

Configures a container resource for Redis Commander which is pre-configured to connect to the RedisResource that this method is used on.

WithRedisInsight(IResourceBuilder<RedisResource>, Action<IResourceBuilder<RedisInsightResource>>, String)

Configures a container resource for Redis Insight which is pre-configured to connect to the RedisResource that this method is used on.

Applies to