79245360

Date: 2024-12-02 19:36:48
Score: 1
Natty:
Report link
var Config = builder.Configuration;
builder.Services.AddDbContext<Context>(z =>
z.UseNpgsql(Config.GetConnectionString("DB")));
builder.Services.AddStackExchangeRedisCache(z =>
{
    z.Configuration = builder.Configuration.GetConnectionString("Redis");
    z.InstanceName = "redis";
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: zeon