feat(lyra)!: 接入 Redis 并添加缓存连通性实验
- 封装缓存读写、JSON 编解码、过期时间与操作超时 - 集中组装 Redis 依赖,在测试接口验证分类缓存读写 - 更新依赖并移除原 handler 测试 BREAKING CHANGE: 配置节由 redis 改为 cache,新增 db 和 timeout 配置项
This commit is contained in:
@@ -13,6 +13,8 @@ port = 5432
|
||||
user = "admin"
|
||||
name = "lab"
|
||||
|
||||
[redis]
|
||||
[cache]
|
||||
host = "localhost"
|
||||
port = 6379
|
||||
port = 6379
|
||||
db = 0
|
||||
timeout = 200
|
||||
Reference in New Issue
Block a user