😎1、增加redis自动检测集群节点 2、升级furion v4.9.4.8

This commit is contained in:
zuohuaijun 2024-07-28 19:36:58 +08:00
parent 8e78638763
commit e1f7c0eafa
3 changed files with 10 additions and 6 deletions

View File

@ -5,9 +5,10 @@
"Prefix": "adminnet_", //
"CacheType": "Memory", // MemoryRedis
"Redis": {
"Configuration": "server=127.0.0.1:6379;password=;db=5;", // Redis
"Prefix": "adminnet_", // Redis
"MaxMessageSize": "1048576" // 1024 * 1024
"Configuration": "server=127.0.0.1:6379;password=;db=5;", // Redis
"Prefix": "adminnet_", // Redis
"MaxMessageSize": "1048576", // 1024 * 1024
"AutoDetect": false // Redis
}
},
"Cluster": { //

View File

@ -18,9 +18,9 @@
<PackageReference Include="AspectCore.Extensions.Reflection" Version="2.4.0" />
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="8.14.6" />
<PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.9.4.7" />
<PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.9.4.7" />
<PackageReference Include="Furion.Pure" Version="4.9.4.7" />
<PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.9.4.8" />
<PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.9.4.8" />
<PackageReference Include="Furion.Pure" Version="4.9.4.8" />
<PackageReference Include="Hardware.Info" Version="100.1.0.1" />
<PackageReference Include="IPTools.China" Version="1.6.0" />
<PackageReference Include="IPTools.International" Version="1.6.0" />

View File

@ -25,6 +25,9 @@ public static class CacheSetup
Configuration = cacheOptions.Redis.Configuration,
Prefix = cacheOptions.Redis.Prefix
});
// 自动检测集群节点
redis.AutoDetect = App.GetConfig<bool>("Cache:Redis:AutoDetect", true);
// 最大消息大小
if (cacheOptions.Redis.MaxMessageSize > 0)
redis.MaxMessageSize = cacheOptions.Redis.MaxMessageSize;