maxTotal The maximum number of connections that are supported by the pool.
maxIdle The maximum number of idle connections in the pool.
minIdle The minimum number of idle connections in the pool.
blockWhenExhausted Specifies whether the client must wait when the resource pool is exhausted. The following maxWaitMillis parameter takes effect only when this parameter is set to true.
testOnBorrow Specifies whether connections will be validated by using the PING command before they rre borrowed from the pool. Invalid connections will be removed from the pool.
testOnReturn Specifies whether connections will be validated using the PING command before they are returned to the pool. Invalid connections will be removed from the pool.
通过jedisPoll.getResource()来获取connection来执行redis 操作
publicstaticvoidjedisPoolTest(){
JedisPool jedisPool = new JedisPool(getPoolConfig(), "localhost", 6379);