@@ -8,7 +8,7 @@
"Configuration": "server=127.0.0.1:6379;password=;db=5;", // Redis连接字符串
"Prefix": "adminnet_", // Redis前缀(目前没用)
"MaxMessageSize": "1048576", // 最大消息大小 默认1024 * 1024
- "AutoDetect": false // 自动检测集群节点 公有云Redis一般放在代理背后,主从架构,如果开启自动检测,将会自动识别主从,导致得到无法连接的内网主从库地址
+ "AutoDetect": false // 自动检测集群节点 阿里云的Redis分布式集群使用代理模式,需要设置为false关闭自动检测;如果不用代理地址,就配置多个节点地址并打开自动检测
}
},
"Cluster": { // 集群配置
@@ -60,7 +60,7 @@ public class SysEnumService : IDynamicApiController, ITransient
TypeDescribe = description,
TypeName = type.Name,
TypeRemark = description,
- EnumEntities = enumType.EnumToList()
+ EnumEntities = (enumType ?? type).EnumToList()
};