Skip to content

Add RepairCache retention policies and cache CLI - #87

Open
VKspyder2003 wants to merge 1 commit into
Johin2:mainfrom
VKspyder2003:feature/cache-retention
Open

Add RepairCache retention policies and cache CLI#87
VKspyder2003 wants to merge 1 commit into
Johin2:mainfrom
VKspyder2003:feature/cache-retention

Conversation

@VKspyder2003

@VKspyder2003 VKspyder2003 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR implements the cache retention and management features proposed in #59.

Changes

  • Added configurable cache retention via:
    • max_age_days
    • max_entries
  • Added automatic eviction after writes when retention limits are configured.
  • Added public RepairCache.prune() API.
  • Enhanced RepairCache.stats() to report configured retention settings.
  • Added a new self-heal cache CLI command supporting:
    • --stats
    • --prune
    • --older-than
    • --max-age-days
    • --max-entries
  • Added comprehensive unit and CLI tests covering:
    • validation
    • TTL pruning
    • size-based pruning
    • combined retention policies
    • automatic eviction
    • CLI behavior

Closes #59

@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

@VKspyder2003 is attempting to deploy a commit to the johin2's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ecc-tools

ecc-tools Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RepairCache: add TTL/size eviction, a prune() method, and a 'self-heal cache' CLI command

1 participant