template.yml 672 B

1234567891011121314151617181920
  1. cache: # 1-内存 2-redis
  2. type: 1
  3. expire-time: 2 #单位为小时
  4. refresh-time: 1.5
  5. spring:
  6. redis:
  7. host: 172.19.103.88 # ip
  8. port: 6379 # R端口
  9. database: 0 # 默认使用DB0
  10. timeout: 0 # 连接超时时间(毫秒)
  11. #sentinel:
  12. # master: # Name of Redis server.
  13. # nodes: # Comma-separated list of host:port pairs.
  14. pool: ##连接池配置
  15. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  16. max-idle: 8 # 连接池中的最大空闲连接
  17. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  18. min-idle: 1 # 连接池中的最小空闲连接