🚚 Use capitalized connection strings
This commit is contained in:
@@ -4,8 +4,8 @@ var builder = DistributedApplication.CreateBuilder(args);
|
||||
|
||||
var isDev = builder.Environment.IsDevelopment();
|
||||
|
||||
var cache = builder.AddRedis("cache");
|
||||
var queue = builder.AddNats("queue").WithJetStream();
|
||||
var cache = builder.AddRedis("Cache");
|
||||
var queue = builder.AddNats("Queue").WithJetStream();
|
||||
|
||||
var ringService = builder.AddProject<Projects.DysonNetwork_Ring>("ring");
|
||||
var passService = builder.AddProject<Projects.DysonNetwork_Pass>("pass")
|
||||
|
||||
@@ -48,9 +48,9 @@ public static class Extensions
|
||||
|
||||
builder.Services.AddSingleton<IClock>(SystemClock.Instance);
|
||||
|
||||
builder.AddNatsClient("queue");
|
||||
builder.AddNatsClient("Queue");
|
||||
builder.AddRedisClient(
|
||||
"cache",
|
||||
"Cache",
|
||||
configureOptions: opts =>
|
||||
{
|
||||
opts.AbortOnConnectFail = false;
|
||||
@@ -60,7 +60,7 @@ public static class Extensions
|
||||
// Setup cache service
|
||||
builder.Services.AddStackExchangeRedisCache(options =>
|
||||
{
|
||||
options.Configuration = builder.Configuration.GetConnectionString("cache");
|
||||
options.Configuration = builder.Configuration.GetConnectionString("Cache");
|
||||
options.InstanceName = "dyson:";
|
||||
});
|
||||
builder.Services.AddSingleton<IDistributedLockFactory, RedLockFactory>(sp =>
|
||||
|
||||
Reference in New Issue
Block a user