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

Expire more for larger writes #138

Merged
merged 1 commit into from Jan 24, 2024
Merged

Expire more for larger writes #138

merged 1 commit into from Jan 24, 2024

Conversation

djmb
Copy link
Collaborator

@djmb djmb commented Jan 24, 2024

Expiries should be proportional to the number of items written, not the number of write operations.

We multiply the number of writes by the expiry chance to determine how many expiries to trigger. We trigger an expiry for every whole number in that muliplied value and determine whether to trigger an extra expiry based on the remainder.

Expiries should be proportional to the number of items written, not the
number of write operations.

We multiply the number of writes by the expiry chance to determine how
many expiries to trigger. We trigger an expiry for every whole number in
that muliplied value and determine whether to trigger an extra expiry
based on the remainder.
@djmb djmb merged commit 2bfd513 into main Jan 24, 2024
34 checks passed
@djmb djmb deleted the cache-expiry-overflow branch January 24, 2024 14:11
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.

None yet

1 participant