|
|
|
@ -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}";
|
|
|
|
|