提交 57c37b91 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 08f30461
......@@ -13,12 +13,12 @@ public class Service {
// 设置最大连接数
config.setMaxTotal(200);
// 设置最大空闲数
config.setMaxIdle(8);
config.setMaxIdle(50);
// 设置最大等待时间
config.setMaxWaitMillis(1000 * 100);
// 在borrow一个jedis实例时,是否需要验证,若为true,则所有jedis实例均是可用的
config.setTestOnBorrow(true);
pool = new JedisPool(config, "127.0.0.1", 6379, 3000);
pool = new JedisPool(config, "192.168.2.231", 6379, 3000,"123456",6);
}
DistributedLockUtil lock = new DistributedLockUtil(pool);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论