#最大活動對象數
redis.pool.maxTotal=1000
#最大能夠保持idel狀態的對象數
redis.pool.maxIdle=100
#最小能夠保持idel狀態的對象數
redis.pool.minIdle=50
#當池內沒有返回對象時,最大等待時間
redis.pool.maxWaitMillis=10000
#當調用borrow Object方法時,是否進行有效性檢查
redis.pool.testOnBorrow=true
#當調用return Object方法時,是否進行有效性檢查
redis.pool.testOnReturn=true
#“空閒鏈接”檢測線程,檢測的週期,毫秒數。如果爲負值,表示不運行“檢測線程”。默認爲-1.
redis.pool.timeBetweenEvictionRunsMillis=30000
#向調用者輸出“鏈接”對象時,是否檢測它的空閒超時;
redis.pool.testWhileIdle=true
#對於“空閒鏈接”檢測線程而言,每次檢測的鏈接資源的個數。默認爲3.
redis.pool.numTestsPerEvictionRun=50
#redis服務器的IP
redis.ip=xxxxxx
#redis服務器的Port
redis1.port=6379
jedis詳細配置
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.