Explorar el Código

加上jedis连接池配置

suntianwu hace 3 años
padre
commit
633d6f98c9

+ 5 - 0
src/main/resources/application-dev.properties

@@ -22,6 +22,11 @@ spring.redis.port=7001
 spring.redis.database=0
 spring.redis.timeout=500
 spring.redis.password=106@!en4
+## redis jedis pool setting
+spring.redis.jedis.pool.max-active=20
+spring.redis.jedis.pool.max-idle=10
+spring.redis.jedis.pool.max-wait=-1
+spring.redis.jedis.pool.min-idle=5
 #################################### 以下是redis的集群标准配置 结束 ##############################
 file.savePath=/root/care/file
 file.url=https://rfcare.106tec.com/care-file/

+ 6 - 0
src/main/resources/application-prod.properties

@@ -24,6 +24,12 @@ spring.redis.host=localhost
 spring.redis.port=6379
 spring.redis.database=0
 spring.redis.timeout=500
+
+## redis jedis pool setting
+spring.redis.jedis.pool.max-active=20
+spring.redis.jedis.pool.max-idle=10
+spring.redis.jedis.pool.max-wait=-1
+spring.redis.jedis.pool.min-idle=5
 #################################### 以下是redis的集群标准配置 结束 ##############################
 file.savePath=/data/care/care-file
 file.url=https://www.rfcare.cn/care-file/