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

V2Client cache-related methods #34

Merged
merged 11 commits into from Feb 16, 2019
Merged

V2Client cache-related methods #34

merged 11 commits into from Feb 16, 2019

Conversation

Kronopt
Copy link
Member

@Kronopt Kronopt commented Feb 16, 2019

No description provided.

- cache_info_total
- cache_clear_total
- cache_location_absolute
- Reworked logic used to check the V2Client cache parameter
-
- Implemented:
- - V2Client.cache_info
- - V2Client.cache_clear
- - V2Client.cache_location
- caching wrapper function is now defined inside V2Client
- get methods are counted when calling V2Client._assign_method
- base_get_test: clear cache before and after test
- V2Client cache methods test:
- - base_cache_info_test
- - base_cache_clear_test
- - base_cache_location_test
- V2Clint.cache_info() was incrementing cache size even when the cache of a specific get method was not growing
- Global cache hits and misses are now properly accounted for
- Removed some unnecessary cache_clear() calls from the tests
@Kronopt Kronopt merged commit 68c1c87 into master Feb 16, 2019
@Kronopt Kronopt deleted the cache-related-methods branch February 16, 2019 18:13
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

1 participant