景大侠
|
4c3d47f1f0
|
feat(cache): 同步/异步函数可共享缓存
- 缓存键支持自定义命名,使异步与同步函数可共享缓存结果
- 内存缓存改为类变量,实现多个cache装饰器共享同一缓存空间
- 重构AsyncMemoryBackend,减少重复代码
- 补齐部分模块的缓存清理功能
|
2026-02-10 18:46:49 +08:00 |
|
Attente
|
91eb35a77b
|
fix(cache): 修复fresh会被错误覆盖的问题
|
2025-11-23 16:46:09 +08:00 |
|
Attente
|
6755202958
|
feat(cache): 使用 fresh 和 async_fresh 统一缓存控制方式
- 修复因缓存导致的插件更新后仍有更新提示的问题
- 统一使用 fresh/async_fresh 控制缓存行为
- 调整 TMDb 模块缓存策略,优化异步请求缓存清除机制
- 移除冗余的缓存方法封装,减少调用层级
- 简化 PluginHelper 中的缓存方法结构,移除 force 参数
|
2025-11-03 07:41:42 +08:00 |
|
Attente
|
7421ca09cc
|
fix(transfer): 修复部分情况下无法正确统计已完成任务总大小的问题
- get_directory_size 使用 os.scandir 递归遍历提升性能
- 当任务文件项存储类型为 local 时,若其大小为空,则通过 SystemUtils 获取目录大小以确保
完成任务的准确统计。
fix(cache): 修改 fresh 和 async_fresh 默认参数为 True
refactor(filemanager): 移除整理后总大小计算逻辑
- 删除 TransHandler 中对整理目录总大小的冗余计算,提升性能并简化流程。
perf(system): 使用 scandir 优化文件扫描性能
- 重构 SystemUtils 中的文件扫描方法(list_files、exists_file、list_sub_files),
- 采用 os.scandir 替代 glob 实现,并预编译正则表达式以提升目录遍历与文件匹配性能。
|
2025-10-23 19:21:24 +08:00 |
|
Attente
|
b609567c38
|
feat(cache): 引入 fresh 和 async_fresh 以控制缓存行为
- 新增 `fresh` 和 `async_fresh` 用于在同步和异步函数中
临时禁用缓存。
- 通过 `_fresh` 这一 contextvars 变量实现上下文感知的
缓存刷新机制
- 修改了 `cached` 装饰器逻辑,在 `is_fresh()` 为 True
时跳过缓存读取。
- 修复 download 模块中路径处理问题,使用 `Path.as_posix()` 确保跨平台兼容性。
|
2025-10-19 22:31:50 +08:00 |
|
jxxghp
|
1e94d794ed
|
fix log
|
2025-09-08 12:12:00 +08:00 |
|
jxxghp
|
6664fb1716
|
feat:增加插件和日历的自动缓存
|
2025-08-25 16:37:02 +08:00 |
|
jxxghp
|
1206f24fa9
|
修复缓存迭代时的并发问题
|
2025-08-25 13:11:44 +08:00 |
|
jxxghp
|
2285befebb
|
fix cache set
|
2025-08-24 16:10:48 +08:00 |
|
jxxghp
|
1cd0648e4e
|
fix cache set
|
2025-08-24 15:36:56 +08:00 |
|
jxxghp
|
30446c4526
|
fix cache is_redis
|
2025-08-24 12:27:14 +08:00 |
|
jxxghp
|
ba146e13ef
|
fix 优化cache模块声明
|
2025-08-24 08:36:37 +08:00 |
|
jxxghp
|
7cc3777a60
|
fix async cache
|
2025-08-23 18:34:47 +08:00 |
|
jxxghp
|
31f342fe4f
|
fix torrent
|
2025-08-23 18:10:33 +08:00 |
|
jxxghp
|
3b04506893
|
fix redis key
|
2025-08-23 15:40:38 +08:00 |
|
jxxghp
|
354165aa0a
|
fix cache
|
2025-08-23 14:21:50 +08:00 |
|
jxxghp
|
343109836f
|
fix cache
|
2025-08-23 14:06:44 +08:00 |
|
Cursor Agent
|
5e7dcdfe97
|
Modify cache region key generation to use consistent prefix format
Co-authored-by: jxxghp <jxxghp@live.cn>
|
2025-08-23 04:13:25 +00:00 |
|
Cursor Agent
|
973c545723
|
Checkpoint before follow-up message
Co-authored-by: jxxghp <jxxghp@live.cn>
|
2025-08-23 04:06:16 +00:00 |
|
Cursor Agent
|
fd62eecfef
|
Simplify TTLCache, remove dict-like methods, enhance Cache interface
Co-authored-by: jxxghp <jxxghp@live.cn>
|
2025-08-23 04:01:17 +00:00 |
|
Cursor Agent
|
b5ca7058c2
|
Add helper methods for cache backend in sync and async versions
Co-authored-by: jxxghp <jxxghp@live.cn>
|
2025-08-23 03:58:04 +00:00 |
|
Cursor Agent
|
57a48f099f
|
Add dict-like operations to CacheBackend with sync and async support
Co-authored-by: jxxghp <jxxghp@live.cn>
|
2025-08-23 03:50:52 +00:00 |
|
jxxghp
|
addb9d836a
|
remove cache singleton
|
2025-08-22 11:33:53 +08:00 |
|
jxxghp
|
9e065138e9
|
fix cache default
|
2025-08-21 21:49:00 +08:00 |
|
jxxghp
|
1c73c92bfd
|
fix cache Singleton
|
2025-08-21 21:45:34 +08:00 |
|
jxxghp
|
da1c8a162d
|
fix cache maxsize
|
2025-08-21 20:10:27 +08:00 |
|
jxxghp
|
0b199b8421
|
fix TTLCache
|
2025-08-21 16:54:49 +08:00 |
|
jxxghp
|
a59730f6eb
|
优化cache模块的默认值
|
2025-08-21 16:29:49 +08:00 |
|
jxxghp
|
c6c84fe65b
|
rename
|
2025-08-21 16:02:50 +08:00 |
|
jxxghp
|
03c757bba6
|
fix TTLCache
|
2025-08-21 13:17:59 +08:00 |
|
jxxghp
|
bc242f4fd4
|
fix yield
|
2025-08-21 12:04:15 +08:00 |
|
jxxghp
|
31cca58943
|
fix cache
|
2025-08-21 08:26:32 +08:00 |
|
jxxghp
|
f07496a4a0
|
fix cache
|
2025-08-20 21:11:10 +08:00 |
|
jxxghp
|
b3113e13ec
|
refactor:新增文件缓存组合
|
2025-08-20 19:04:07 +08:00 |
|
jxxghp
|
055c8e26f0
|
refactor:重构缓存系统
|
2025-08-20 17:35:32 +08:00 |
|
jxxghp
|
2fa40dac3f
|
优化监控和消息服务的资源管理
|
2025-08-20 13:35:24 +08:00 |
|
jxxghp
|
5b0bb19717
|
统一使用 app.core.cache 中的 TTLCache
|
2025-08-20 12:43:30 +08:00 |
|
jxxghp
|
89e8a64734
|
重构Redis缓存机制
|
2025-08-20 08:51:03 +08:00 |
|
jxxghp
|
e5d2ade6e6
|
fix 协程环境中调用插件同步函数处理
|
2025-08-02 08:41:44 +08:00 |
|
jxxghp
|
ee4d6d0db3
|
fix cache
|
2025-07-31 09:55:47 +08:00 |
|
Attente
|
0f0c3e660b
|
style: 清理空白字符
移除代码中的 trailing whitespace 和空行缩进, 提升代码整洁度
|
2025-06-29 22:49:58 +08:00 |
|
jxxghp
|
562c1de0c9
|
aList => OpenList
|
2025-06-28 08:43:09 +08:00 |
|
jxxghp
|
eac435b233
|
fix lint
|
2025-06-05 22:13:33 +08:00 |
|
jxxghp
|
22b69f7dac
|
fix blanke
|
2025-03-23 22:35:37 +08:00 |
|
jxxghp
|
f9b0db623d
|
fix cython type error
|
2025-03-23 21:39:37 +08:00 |
|
jxxghp
|
95cd10bfba
|
fix #4014
|
2025-03-22 08:15:58 +08:00 |
|
InfinityPacer
|
49f1c9c10b
|
fix(cache): check cache existence when skip_none is False
|
2025-02-02 11:18:02 +08:00 |
|
InfinityPacer
|
bfbd3c527c
|
fix(cache): ensure consistent parameter ordering in get_cache_key
|
2025-01-22 23:53:19 +08:00 |
|
InfinityPacer
|
7c017faf31
|
feat(cache): optimize serialization with type-based caching
|
2025-01-22 17:41:11 +08:00 |
|
InfinityPacer
|
70c4509682
|
feat(cache): add exists to check key presence in cache backends
|
2025-01-22 14:25:30 +08:00 |
|