RedisBuilderExtensions
Class static net8.0
Provides extension methods for adding Redis resources to the application model.
namespace Aspire.Hosting;
public static class RedisBuilderExtensions{ // ...} 13 members
Methods13
Section titled MethodsAddRedis(IDistributedApplicationBuilder, string, int?)extensionats exportIResourceBuilder<RedisResource> Adds a Redis container to the application model.
AddRedis(IDistributedApplicationBuilder, string, int?, IResourceBuilder<ParameterResource>)extensionats exportIResourceBuilder<RedisResource> Adds a Redis container to the application model.
WithDataBindMount(IResourceBuilder<RedisResource>, string, bool)extensionats exportIResourceBuilder<RedisResource> Adds a bind mount for the data folder to a Redis container resource and enables Redis persistence.
WithDataBindMount(IResourceBuilder<RedisInsightResource>, string)extensionats exportIResourceBuilder<RedisInsightResource> Adds a bind mount for the data folder to a Redis Insight container resource.
WithDataVolume(IResourceBuilder<RedisResource>, string?, bool)extensionats exportIResourceBuilder<RedisResource> Adds a named volume for the data folder to a Redis container resource and enables Redis persistence.
WithDataVolume(IResourceBuilder<RedisInsightResource>, string?)extensionats exportIResourceBuilder<RedisInsightResource> Adds a named volume for the data folder to a Redis Insight container resource.
WithHostPort(IResourceBuilder<RedisCommanderResource>, int?)extensionats exportIResourceBuilder<RedisCommanderResource> Configures the host port that the Redis Commander resource is exposed on instead of using randomly assigned port.
WithHostPort(IResourceBuilder<RedisInsightResource>, int?)extensionats exportIResourceBuilder<RedisInsightResource> Configures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.
WithHostPort(IResourceBuilder<RedisResource>, int?)extensionats exportIResourceBuilder<RedisResource> Configures the host port that the Redis resource is exposed on instead of using randomly assigned port.
WithPassword(IResourceBuilder<RedisResource>, IResourceBuilder<ParameterResource>)extensionats exportIResourceBuilder<RedisResource> Configures the password that the Redis resource is used.
WithPersistence(IResourceBuilder<RedisResource>, TimeSpan?, long)extensionats exportIResourceBuilder<RedisResource> Configures a Redis container resource for persistence.
WithRedisCommander(IResourceBuilder<RedisResource>, Action<IResourceBuilder<RedisCommanderResource>>, string?)extensionats exportIResourceBuilder<RedisResource> 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?)extensionats exportIResourceBuilder<RedisResource> Configures a container resource for Redis Insight which is pre-configured to connect to the
RedisResource that this method is used on.