M3-06 Cache Module 基础版 #34
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
设计知习统一缓存模块,为全系统提供 Redis 缓存策略,覆盖配置缓存、权限缓存、服务状态缓存和 Dashboard 统计缓存。
本 Issue 只做模块架构设计,不直接实现代码。
背景说明
多个模块需要缓存以提高性能:Config 模块的配置数据、Admin Auth 的权限数据、Workspace Experience 的 Dashboard 聚合数据等。如果不统一管理缓存策略(key 命名规范、过期时间、失效策略),后期会出现缓存混乱和脏数据问题。
Cache 模块基于 Redis + @nestjs/cache-manager,提供统一的缓存接口和策略管理。
模块职责
本模块负责:
本模块不负责:
第一阶段重点缓存对象
请判断以下缓存是否合理,并设计过期时间:
需要注意的风险
基础设施依赖
API 设计
Internal Provider(供各模块调用):
AAPI:
交付检查
验收标准
禁止事项
不建议当前阶段实现