引入redisson

This commit is contained in:
zhangzhiqiang
2022-12-15 16:56:32 +08:00
parent b6f7e921bd
commit 56a58b54a3
3 changed files with 100 additions and 6 deletions

View File

@@ -70,12 +70,30 @@ spring:
multi-statement-allow: true
redis:
#数据库索引
database: ${REDIS_DB:14}
host: ${REDIS_HOST:47.111.78.178}
port: ${REDIS_PORT:6379}
password: ${REDIS_PWD:}
#连接超时时间
timeout: 5000
database: 1
# Redis服务器地址
host: 47.96.133.178
# Redis服务器连接端口
port: 6479
# Redis服务器连接密码默认为空
password: 942464Yy
redisson:
# redis key前缀
keyPrefix:
# 线程池数量
threads: 4
# Netty线程池数量
nettyThreads: 8
# 单节点配置
singleServerConfig:
# 最小空闲连接数
connectionMinimumIdleSize: 8
# 连接池大小
connectionPoolSize: 32
# 连接空闲超时,单位:毫秒
idleConnectionTimeout: 10000
# 命令等待超时,单位:毫秒
timeout: 3000
# 登录相关配置
login:
# 登录缓存
@@ -147,3 +165,4 @@ logging:
file:
path: C:\log\wms
config: classpath:logback-spring.xml