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

fix: expire cache items after 24h+ #669

Merged
merged 1 commit into from
Feb 13, 2024
Merged

fix: expire cache items after 24h+ #669

merged 1 commit into from
Feb 13, 2024

Conversation

estahn
Copy link
Owner

@estahn estahn commented Feb 12, 2024

Introduces TTL to cache items to prevent incorrect swaps. The TTL is 24h + random 180 minutes to prevent a cache stampede.

fixes #632

Introduces TTL to cache items to prevent incorrect swaps. The TTL is 24h + random 180 minutes to prevent a cache stampede.

fixes #632
@estahn estahn added the bug Something isn't working label Feb 12, 2024
@estahn estahn self-assigned this Feb 12, 2024
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (7dc48ee) 34.08% compared to head (cc4c3d4) 34.08%.
Report is 20 commits behind head on main.

Files Patch % Lines
pkg/registry/ecr.go 0.00% 2 Missing ⚠️
pkg/registry/gar.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #669   +/-   ##
=======================================
  Coverage   34.08%   34.08%           
=======================================
  Files           9        9           
  Lines         848      848           
=======================================
  Hits          289      289           
  Misses        534      534           
  Partials       25       25           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@estahn estahn merged commit f541b8d into main Feb 13, 2024
13 of 14 checks passed
@estahn estahn deleted the cache-items-ttl branch February 13, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with tags removed from ECR
1 participant