redis配置优化
This commit is contained in:
parent
092bd90257
commit
cdd1421222
@ -27,13 +27,7 @@ spring:
|
|||||||
database: 0 # Redis数据库索引(默认为0)
|
database: 0 # Redis数据库索引(默认为0)
|
||||||
port: 6379 # Redis服务器连接端口
|
port: 6379 # Redis服务器连接端口
|
||||||
password: # Redis服务器连接密码(默认为空)
|
password: # Redis服务器连接密码(默认为空)
|
||||||
jedis:
|
timeout: 300ms # 连接超时时间(毫秒)
|
||||||
pool:
|
|
||||||
max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
|
|
||||||
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
||||||
max-idle: 8 # 连接池中的最大空闲连接
|
|
||||||
min-idle: 0 # 连接池中的最小空闲连接
|
|
||||||
timeout: 1000ms # 连接超时时间(毫秒)
|
|
||||||
|
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
host: localhost
|
host: localhost
|
||||||
|
@ -27,13 +27,7 @@ spring:
|
|||||||
database: 0 # Redis数据库索引(默认为0)
|
database: 0 # Redis数据库索引(默认为0)
|
||||||
port: 6379 # Redis服务器连接端口
|
port: 6379 # Redis服务器连接端口
|
||||||
password: # Redis服务器连接密码(默认为空)
|
password: # Redis服务器连接密码(默认为空)
|
||||||
jedis:
|
timeout: 300ms # 连接超时时间(毫秒)
|
||||||
pool:
|
|
||||||
max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
|
|
||||||
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
||||||
max-idle: 8 # 连接池中的最大空闲连接
|
|
||||||
min-idle: 0 # 连接池中的最小空闲连接
|
|
||||||
timeout: 0ms # 连接超时时间(毫秒)
|
|
||||||
|
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
host: rabbit
|
host: rabbit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user