-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: cache data #16
feat: cache data #16
Conversation
b1401af
to
45b18a2
Compare
d806bb7
to
dad2d5c
Compare
d33a079
to
dad2d5c
Compare
dad2d5c
to
8024806
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
|
把和cache有关的封装成独立的类,不要全都塞在 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
…quest<api::Evento> and request<api::Github> in 'NetworkClient.h'
…ing functionality(TTL=3 hours) into existing codes in 'NetworkClient.h'
…nd aux function updateCache in 'NetworkClient.h'
…File,generateFilename
e953179
to
75856c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
8bb5b71
to
19f1efd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
7f6372d
to
2b02530
Compare
0b6532a
to
ea21e81
Compare
560bc5f
to
274e78d
Compare
clang-tidy review says "All clean, LGTM! 👍" |
* create cache and aux function generateCacheKey in class NetworkClient * create cache and aux function generateCacheKey in class NetworkClient * feat: add cacheKey generating,cache Checking and cache Updating to request<api::Evento> and request<api::Github> in 'NetworkClient.h' * feat: add struct CacheEntry ,bool isCacheEntryExpired and cacheExpireing functionality(TTL=3 hours) into existing codes in 'NetworkClient.h' * feat: modify data struct of cache and add LRU cacheLimit up to 64MB and aux function updateCache in 'NetworkClient.h' * feat: cache exceptions handler * feat: photos cache in HttpAccessManager,providing aux functionssaveToFile,generateFilename * fix: merge from branch dev and fix the type matching problem * perf: improve performance and fix potential problems * refactor: cache manager * feat: download file * feat: get cache size * feat: support request cache * feat: use ttl --------- Co-authored-by: Serein <[email protected]>
cache
data type:
Expectation
After that