application-redis.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #spring:
  2. # data:
  3. # redis:
  4. # # Redis服务器地址
  5. # host: 192.168.100.32
  6. # # Redis服务器端口
  7. # port: 9736
  8. # # Redis数据库索引
  9. # database: 5
  10. # # Redis服务器密码(注意转义字符处理)
  11. # password: "6E6985E1F7CB40F24A\\."
  12. # # 连接超时时间
  13. # timeout: 30s
  14. # # 客户端名称
  15. # client-name:
  16. # lettuce:
  17. # pool:
  18. # # 连接池中的最小空闲连接
  19. # min-idle: 16
  20. # # 连接池中的最大空闲连接
  21. # max-idle: 16
  22. # # 连接池的最大数据库连接数
  23. # max-active: 16
  24. # # 连接池最大阻塞等待时间(使用负值表示没有限制)
  25. # max-wait: -1ms
  26. # # 关闭超时时间
  27. # shutdown-timeout: 100ms
  28. # cache:
  29. # type: redis
  30. # redis:
  31. # # 缓存过期时间(7天)
  32. # time-to-live: 604800000
  33. # # 缓存键前缀
  34. # key-prefix: cache
  35. # # 是否使用键前缀
  36. # use-key-prefix: true
  37. # # 是否缓存空值
  38. # cache-null-values: true