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

give a way to access the stale cache #216

Merged
merged 2 commits into from
May 7, 2020
Merged

Conversation

flisky
Copy link
Contributor

@flisky flisky commented Apr 1, 2020

an update for #181 :)

bigcache.go Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Apr 1, 2020

Codecov Report

Merging #216 into master will increase coverage by 1.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #216      +/-   ##
==========================================
+ Coverage   90.08%   91.17%   +1.09%     
==========================================
  Files          15       15              
  Lines         716      714       -2     
==========================================
+ Hits          645      651       +6     
+ Misses         61       55       -6     
+ Partials       10        8       -2     
Impacted Files Coverage Δ
bigcache.go 99.10% <ø> (ø)
shard.go 93.04% <100.00%> (+3.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d572104...3da1e57. Read the comment docs.

bigcache.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@siennathesane siennathesane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will let others comment.

siennathesane
siennathesane previously approved these changes Apr 2, 2020
Copy link
Collaborator

@siennathesane siennathesane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will let others comment.

@siennathesane
Copy link
Collaborator

@cristaloleg this looks good to me. I think it would be good to version bump after merging this because it sets an explicit value, so it's technically a minor API change.

@flisky can you please rebase and then re-request a review?

jgheewala and others added 2 commits May 7, 2020 13:02
EntryStatus back to the caller "Expired" cannot be differentiated.
Fixing this by default "_" to 0 and incremental RemoveReasons

comment was missing for GetWithInfo api so updated that

test: ran all unit test cases
Change-Id: Ic3e2259630668af0d4b5110125f2d8e43b83081b
@siennathesane siennathesane merged commit ccdbc60 into allegro:master May 7, 2020
@siennathesane siennathesane mentioned this pull request May 7, 2020
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

5 participants