refactor(recorder): 重构业务数据处理与缓存机制
- 将业务数据缓存逻辑从 RecordService 移至策略层,遵循单一职责原则 - 在 IRecorderStrategy 接口中新增缓存操作方法,使策略能够自主管理业务数据 - 修改 IBusinessDataHandler.handle 方法签名,增加 recordId 参数以支持策略级缓存决策 - 重构 DefaultRecorderStrategy 实现缓存写入、消费和清理逻辑 - 优化 RecordCache 使其支持通用缓存配置,便于策略扩展 - 统一使用严格相等运算符 (===) 替换松散相等运算符 (==) - 修复注释拼写错误 (@Description 替换 @Descripttion) - 更新 cspell 词典,添加缺失的技术词汇
Showing
16 changed files
with
241 additions
and
150 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
No preview for this file type
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment