@@ -45,7 +45,7 @@
},
"ConnectionStrings": {
"CallCenter": "server=db.fengwo.com;Database=callcenter;Uid=dev;Pwd=fengwo11!!;SslMode=none;",
- "Redis": "192.168.100.223:6379"
+ "Redis": "192.168.100.223"
"Swagger": true,
"Cors": {
@@ -198,6 +198,9 @@ namespace CallCenter.Caching
region = prefix + region;
}
+
+ if (!region.EndsWith(':'))
+ region += ':';
return region;
@@ -58,7 +58,7 @@ namespace CallCenter.Caching
{
public string ConnectionString { get; set; }
- public int Port { get; set; }
+ public int Port { get; set; } = 6379;
public int Database { get; set; }