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(dbcache): max age semantics #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

blaggacao
Copy link
Contributor

@blaggacao blaggacao commented Dec 14, 2019

max size = 2 -> 2 database
max age = 2 -> today-1 database - WRONG
maz age = 2 -> today-2 database - RIGHT

Given that with max size, semantics are [max_size[, it doesn't align to have [max_age]

David Arnold added 3 commits December 14, 2019 15:54
max size = 2 -> 2 database
max age = 2 -> day-1 database - WRONG
maz age = 2 -> day-2 database - RIGHT
@sbidoul sbidoul added the WIP label Jan 5, 2020
@sbidoul
Copy link
Member

sbidoul commented Jan 5, 2020

Marking this as WIP. Please elaborate what the issue is and check why your change breaks tests.

@blaggacao
Copy link
Contributor Author

blaggacao commented Jan 7, 2020

Max Size has an exclusive upper boundary while Max age has an inclusive upper boundary.

They should have both an exclusive upper boundary as "max" can be semantically expanded to "maximum permitted".

@sbidoul
Copy link
Member

sbidoul commented Mar 27, 2020

Tests are red, so this changes the behavior. I'd rather change the documentation (if needed at all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants