xf 2 лет назад
Родитель
Сommit
217b3c584e

+ 1 - 1
src/CallCenter.Api/appsettings.Development.json

@@ -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": {

+ 1 - 1
src/CallCenter.Api/appsettings.json

@@ -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": {

+ 3 - 0
src/CallCenter.Caching/DefaultTypedCache.cs

@@ -198,6 +198,9 @@ namespace CallCenter.Caching
                     region = prefix + region;
                 }
             }
+
+            if (!region.EndsWith(':'))
+                region += ':';
             return region;
         }
     }

+ 1 - 1
src/CallCenter.Caching/StartupExtensions.cs

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