fix(#183): cache prune 子命令 + save 自动清理#194
Merged
Merged
Conversation
- src/toolkit.py: 新增 prune_cache(cache_root, ttl_days=7),按 mtime 删除陈旧子目录 - src/cli/cli.py: cache 子命令新增 'prune' action + --ttl-days 参数 - src/cli/commands/cache.py: 实现 _run_cache_prune;save 前自动 prune - 3 个回归测试:删除陈旧/保留新鲜/计数返回 closes #183
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
closes #183
Changes
src/toolkit.py: 新增prune_cache(cache_root, ttl_days=7)src/cli/cli.py: cache 子命令新增prune+--ttl-dayssrc/cli/commands/cache.py: prune 实现 + save 前自动 pruneVerification