feat(lyra)!: 接入 Redis 并添加缓存连通性实验

- 封装缓存读写、JSON 编解码、过期时间与操作超时
- 集中组装 Redis 依赖,在测试接口验证分类缓存读写
- 更新依赖并移除原 handler 测试

BREAKING CHANGE: 配置节由 redis 改为 cache,新增 db 和 timeout 配置项
This commit is contained in:
2026-10-19 23:12:49 +08:00
parent b72b14a818
commit 759bc3fc35
9 changed files with 154 additions and 160 deletions
+4 -2
View File
@@ -13,6 +13,8 @@ port = 5432
user = "admin"
name = "lab"
[redis]
[cache]
host = "localhost"
port = 6379
port = 6379
db = 0
timeout = 200