yl
2024-03-29 9c634fd767aec36ef97c3a814bf7a29c67d20ee1
VueWebApi/Tools/RedisHelper.cs
@@ -42,8 +42,8 @@
                PooledRedisClientManager prc = new PooledRedisClientManager(readWriteHosts, readOnlyHosts,
                new RedisClientManagerConfig
                {
                    MaxWritePoolSize = readWriteHosts.Length * 5,  //最大写链接数
                    MaxReadPoolSize = readOnlyHosts.Length * 5,    //最大读链接数
                    MaxWritePoolSize = readWriteHosts.Length * 512,  //最大写链接数
                    MaxReadPoolSize = readOnlyHosts.Length * 512,    //最大读链接数
                    AutoStart = true,                              //自动重启
                }, i, 200, 10);// { RedisClientFactory = (IRedisClientFactory)RedisCacheClientFactory.Instance.CreateRedisClient("127.0.0.1", 6379) }; 
                pools.Add(i, prc);