springboot高版本与低版本的redis配置

2022-09-26 00:00:00 版本 配置 springboot

springboot1版本配置:

redis:
host: localhost
port: 6379
password: 123456
timeout: 10000
pool:
max-active: 10
min-idle: 3
max-idle: 5

springboot2版本配置:

redis:
host: localhost
port: 6379
password: 123456
timeout: 10000ms
lettuce:
pool:
max-active: 10
min-idle: 3
max-idle: 5

说明:springboot2版本中,把pool迁移到了lettuce内了。另外限制了timeout必须添加单位。

简单明了,看很多文章BB一堆,直接上代码不就完了,大家又不是看不懂

    原文作者:普通网友
    原文地址: https://blog.csdn.net/drnrrwfs/article/details/124442003
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。

相关文章