Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache: ape cache prune #999

Open
3 tasks
NotPeopling2day opened this issue Aug 18, 2022 · 0 comments
Open
3 tasks

Cache: ape cache prune #999

NotPeopling2day opened this issue Aug 18, 2022 · 0 comments
Labels
category: feature New feature or request size: 3 pieces Moderately challenging, well-defined, may require a bit of research

Comments

@NotPeopling2day
Copy link
Contributor

Overview

Eventually the cache database on disk will get rather large and user's should have a way of trimming the file size. We will use a time-based pruning process with on a configurable upper limit to the database file size set in ape-config.yaml.

Specification

  • Add last_access timestamp field to all cache tables
  • ape cache prune - manual command
  • auto pruning w/ opt out ability

Acceptance Criteria

  • Max cache file size can be set in ape-config.yaml
  • Cache file will not exceed max cache file size
  • Oldest records will be removed first
  • New records can be added
  • No duplicates in the cache

Dependencies

Include links to any open issues that must be resolved before this feature can be implemented.

@NotPeopling2day NotPeopling2day added category: feature New feature or request size: 3 pieces Moderately challenging, well-defined, may require a bit of research labels Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: feature New feature or request size: 3 pieces Moderately challenging, well-defined, may require a bit of research
Projects
None yet
Development

No branches or pull requests

1 participant