feat:引入redis
This commit is contained in:
@@ -5,3 +5,17 @@ spring:
|
||||
url: jdbc:mysql://124.220.58.5:3306/enlish
|
||||
username: root # 数据库用户名
|
||||
password: YLHP@admin123 # 数据库密码
|
||||
data:
|
||||
redis:
|
||||
database: 6 # Redis 数据库索引(默认为 0)
|
||||
host: 124.220.58.5 # Redis 服务器地址
|
||||
port: 6543 # Redis 服务器连接端口
|
||||
password: 741963 # Redis 服务器连接密码(默认为空)
|
||||
timeout: 5s # 读超时时间
|
||||
connect-timeout: 5s # 链接超时时间
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 200 # 连接池最大连接数
|
||||
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
min-idle: 0 # 连接池中的最小空闲连接
|
||||
max-idle: 10 # 连接池中的最大空闲连接
|
||||
|
||||
Reference in New Issue
Block a user