zhenxun_bot/zhenxun
HibiKier 3deffcb46c
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
增强缓存功能,优化请求管理逻辑 (#2012)
- 在 `record_request.py` 和 `group_handle/__init__.py` 中引入了 `CacheRoot`,实现请求缓存,避免重复处理相同请求。
- 在 `exception.py` 中更新 `ForceAddGroupError` 类,新增 `group_id` 属性以便于错误处理。
- 在 `data_source.py` 中修改 `ForceAddGroupError` 的抛出逻辑,包含 `group_id` 信息。
- 更新 `cache` 类,支持类型化缓存字典和列表,增强缓存的类型安全性。

此更新提升了请求处理的效率和准确性,同时增强了错误信息的可追溯性。
2025-08-06 16:31:09 +08:00
..
builtin_plugins 增强缓存功能,优化请求管理逻辑 (#2012) 2025-08-06 16:31:09 +08:00
configs 增强缓存功能,优化请求管理逻辑 (#2012) 2025-08-06 16:31:09 +08:00
models ♻️ refactor(scheduler): 重构定时任务系统并增强功能 (#2009) 2025-08-06 09:02:23 +08:00
plugins 🎨 添加__init__.py 2024-08-29 22:46:30 +08:00
services 增强缓存功能,优化请求管理逻辑 (#2012) 2025-08-06 16:31:09 +08:00
utils ♻️ refactor(scheduler): 重构定时任务系统并增强功能 (#2009) 2025-08-06 09:02:23 +08:00