Skip to content

Commit 04d2562

Browse files
committed
updated redis config
1 parent 75da6c5 commit 04d2562

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Infrastructure/Extensions/ServiceCollectionExtensions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public static IServiceCollection AddInfrastructure(this IServiceCollection servi
2323
services.AddDistributedRedisCache(options =>
2424
{
2525
options.Configuration = config.GetSection("CacheSettings:RedisURL").Get<string>();
26+
options.ConfigurationOptions = new StackExchange.Redis.ConfigurationOptions()
27+
{
28+
AbortOnConnectFail = true
29+
};
2630
});
2731
}
2832
else

0 commit comments

Comments
 (0)