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

Refactor parameter cache.get #2008

Merged
merged 6 commits into from
May 20, 2020

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen jenshnielsen commented May 18, 2020

This IMHO makes the logic a bit more clear. Functinality it should be the same.
I have changed a case in the if/else statments that should never happen to an error from silently returning a not up to date value.

  • Should there be a warning if get_if_invalid=False and the cache is invalid? (mayby but not in this pr)

@codecov
Copy link

codecov bot commented May 18, 2020

Codecov Report

Merging #2008 into master will increase coverage by 0.00%.
The diff coverage is 87.50%.

@@           Coverage Diff           @@
##           master    #2008   +/-   ##
=======================================
  Coverage   71.08%   71.09%           
=======================================
  Files         145      145           
  Lines       19467    19478   +11     
=======================================
+ Hits        13839    13848    +9     
- Misses       5628     5630    +2     

@jenshnielsen
Copy link
Collaborator Author

@astafan8 I think this should implement the changes we talked about. Do you want to have a look

@jenshnielsen jenshnielsen merged commit 33aef33 into microsoft:master May 20, 2020
@jenshnielsen jenshnielsen deleted the rewrite_cache_get branch May 20, 2020 10:06
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.

3 participants