| | |
| | | PooledRedisClientManager prc = new PooledRedisClientManager(readWriteHosts, readOnlyHosts, |
| | | new RedisClientManagerConfig |
| | | { |
| | | MaxWritePoolSize = readWriteHosts.Length * 5, |
| | | MaxReadPoolSize = readOnlyHosts.Length * 5, |
| | | AutoStart = true, |
| | | MaxWritePoolSize = readWriteHosts.Length * 5, //最大写链接数 |
| | | MaxReadPoolSize = readOnlyHosts.Length * 5, //最大读链接数 |
| | | AutoStart = true, //自动重启 |
| | | }, i, 200, 10);// { RedisClientFactory = (IRedisClientFactory)RedisCacheClientFactory.Instance.CreateRedisClient("127.0.0.1", 6379) }; |
| | | pools.Add(i, prc); |
| | | } |