fixed field

master
Young 7 months ago
parent 94309870a0
commit 44de02d436

@ -23,7 +23,7 @@ public static class RedisSetup
ArgumentException.ThrowIfNullOrEmpty(host);
var password = configuration["REDIS_PASSWORD"] ?? redisOptions.Password;
ArgumentException.ThrowIfNullOrEmpty(password);
var serviceName = configuration["REDIS_SERVICE_NAME"] ?? redisOptions.SeriveName;
var serviceName = configuration["REDIS_SERVICE_NAME"] ?? redisOptions.ServiceName;
var connectionString = string.IsNullOrEmpty(serviceName)
? $"{host},password={password}"
: $"{host},password={password},serviceName={serviceName}";

@ -4,7 +4,7 @@ public sealed class RedisOptions : OptionsBase
{
public const string Name = "Redis";
public string SeriveName { get; set; }
public string ServiceName { get; set; }
public string Host { get; set; }

Loading…
Cancel
Save