增加Redis缓存功能

注:/api/groupCourse/cache/get接口为测试接口
This commit is contained in:
2026-05-15 17:32:03 +08:00
parent 0d2ed2aba5
commit a8c7a4061e
10 changed files with 420 additions and 5 deletions
@@ -38,11 +38,24 @@ spring:
user:
name: disabled
password: disabled
data:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:novalon123}
timeout: 5000
lettuce:
pool:
max-active: 8 # 最大连接数
max-idle: 8 # 最大空闲连接
min-idle: 0 # 最小空闲连接
max-wait: -1ms # 连接等待时间
profiles:
active: dev
config:
import: classpath:member-config.yml
management:
endpoints:
web: