1. 遇到connection timed out,解决方法是修改redis.conf里面timed out 时间
2. 遇到read timed out,则在 pool = new JedisPool(config, ip, port,100000); 时加入读超时时间100000,第四个参数。
1. 遇到connection timed out,解决方法是修改redis.conf里面timed out 时间
2. 遇到read timed out,则在 pool = new JedisPool(config, ip, port,100000); 时加入读超时时间100000,第四个参数。