66 references to AddRedis
Aspire.Hosting.Azure.Tests (2)
AzureBicepResourceTests.cs (2)
66{ builder => builder.AddRedis(resourceName).AsAzureRedis() }, 838var redis = builder.AddRedis("cache")
Aspire.Hosting.Redis.Tests (43)
AddRedisTests.cs (24)
19var redis = builder.AddRedis("redis"); 27appBuilder.AddRedis("myRedis").PublishAsContainer(); 55appBuilder.AddRedis("myRedis", port: 9813); 83appBuilder.AddRedis("myRedis") 100var redis = builder.AddRedis("redis"); 126builder.AddRedis("myredis1").WithRedisCommander(); 127builder.AddRedis("myredis2").WithRedisCommander(); 136builder.AddRedis("myredis1").WithRedisInsight(); 137builder.AddRedis("myredis2").WithRedisInsight(); 146builder.AddRedis("myredis").WithRedisCommander(c => 164builder.AddRedis("myredis").WithRedisInsight(c => 182builder.AddRedis("myredis").WithRedisCommander(c => 196builder.AddRedis("myredis").WithRedisInsight(c => 210var redis = builder.AddRedis("myredis1").WithRedisCommander(); 232var redis1 = builder.AddRedis("myredis1").WithRedisCommander(); 233var redis2 = builder.AddRedis("myredis2").WithRedisCommander(); 259var redis = builder.AddRedis("myRedis"); 284var redis = builder.AddRedis("myRedis"); 306var redis = builder.AddRedis("myRedis") 325var redis = builder.AddRedis("myRedis") 337var redis = builder.AddRedis("myRedis") 356var redis = builder.AddRedis("myRedis") 368var redis = builder.AddRedis("myRedis") 388var redis = builder.AddRedis("myRedis")
RedisFunctionalTests.cs (16)
38var resource = builder.AddRedis("resource") 41var dependentResource = builder.AddRedis("dependentresource") 72var redis = builder.AddRedis("redis").WithRedisCommander(c => commanderBuilder = c); 95var redis = builder.AddRedis("redis"); 141var redis1 = builder1.AddRedis("redisForInsightPersistence") 181var redis2 = builder2.AddRedis("redisForInsightPersistence") 238var redis1 = builder.AddRedis("redis-1"); 240var redis2 = builder.AddRedis("redis-2").WithRedisInsight(c => redisInsightBuilder = c); 299var redis1 = builder1.AddRedis("redis"); 342var redis2 = builder2.AddRedis("redis").WithDataVolume(volumeName); 391var redis1 = builder1.AddRedis("redis").WithDataBindMount(bindMountPath); 427var redis2 = builder2.AddRedis("redis").WithDataBindMount(bindMountPath); 475var redis1 = builder1.AddRedis("redis"); 506var redis2 = builder2.AddRedis("redis"); 553var redis1 = builder1.AddRedis("redis") 602var redis2 = builder2.AddRedis("redis")
RedisPublicApiTests.cs (3)
20var action = () => builder.AddRedis(name); 32var action = () => builder.AddRedis(name); 111var redis = builder.AddRedis("Redis");
Aspire.Hosting.Tests (15)
DistributedApplicationTests.cs (3)
791var redis = builder.AddRedis("redis", 1234).WithEndpoint("tcp", endpoint => 797var redisNoPort = builder.AddRedis("redisNoPort").WithEndpoint("tcp", endpoint => 863builder.AddRedis("redis");
Eventing\DistributedApplicationBuilderEventingTests.cs (3)
180var redis = builder.AddRedis("redis"); 205builder.AddRedis("redis1"); 206builder.AddRedis("redis2");
ManifestGenerationTests.cs (2)
234program.AppBuilder.AddRedis("rediscontainer"); 253program.AppBuilder.AddRedis("rediscontainer");
PublishAsConnectionStringTests.cs (1)
17var redis = builder.AddRedis("redis").PublishAsConnectionString();
Schema\SchemaTests.cs (3)
43builder.AddRedis("redis"); 94builder.AddRedis("redis").WithDataVolume(); 100builder.AddRedis("redis").WithBindMount("source", "target");
Utils\WithAnnotationTests.cs (3)
14var redis = builder.AddRedis("redis") 28var redis = builder.AddRedis("redis") 42var redis = builder.AddRedis("redis").WithAnnotation<DummyAnnotation>();
AzureContainerApps.AppHost (1)
Program.cs (1)
15var redis = builder.AddRedis("cache")
ProxylessEndToEnd.AppHost (1)
Program.cs (1)
6var redis = builder.AddRedis("redis", 9999).WithEndpoint("tcp", (endpoint) =>
Redis.AppHost (1)
Program.cs (1)
3var redis = builder.AddRedis("redis")
TestingAppHost1.AppHost (1)
Program.cs (1)
8builder.AddRedis("redis1");
TestProject.AppHost (1)
TestProgram.cs (1)
73var redis = AppBuilder.AddRedis("redis")
TestShop.AppHost (1)
Program.cs (1)
8var basketCache = builder.AddRedis("basketcache")