Skip to content

Conversation

@huantt
Copy link

@huantt huantt commented Nov 18, 2022

Some variable should be private in struct because you may replace it by other ones.

@huantt huantt changed the title refactor: make some variables private in struct refactor: make some variables private in struct & allow limiting cache size Nov 18, 2022
@chenyahui
Copy link
Owner

CacheByRequestBody is interesting. And I left some code review in this pr~

@huantt huantt changed the title refactor: make some variables private in struct & allow limiting cache size refactor: make some variables private in struct & allow limiting cache size & CacheByRequestBody Nov 29, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 30, 2022

Codecov Report

Merging #26 (887cd09) into main (b885ae3) will increase coverage by 0.42%.
The diff coverage is 61.53%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
+ Coverage   63.33%   63.76%   +0.42%     
==========================================
  Files           5        5              
  Lines         270      287      +17     
==========================================
+ Hits          171      183      +12     
- Misses         86       90       +4     
- Partials       13       14       +1     
Flag Coverage Δ
unittests 63.76% <61.53%> (+0.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
persist/redis.go 0.00% <0.00%> (ø)
persist/memory.go 83.33% <57.14%> (-7.58%) ⬇️
cache.go 71.95% <80.00%> (+0.81%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@huantt
Copy link
Author

huantt commented Aug 29, 2023

@chenyahui I have just updated my PR, please review it.

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.

4 participants