This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add support for evicting cache entries based on last access time. #10205
Merged
Merged
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
700af7a
Add global cache list.
erikjohnston eaaee81
Add function to clean up old cache entries
erikjohnston 811aa3f
Add config
erikjohnston 9f62fdf
Newsfile
erikjohnston 7ba719c
Update memory usage
erikjohnston 01afcf6
Only use GLOBAL_LIST if time based eviction is enabled
erikjohnston a4657df
Add test
erikjohnston f72ed26
Reduce size overhead of new functionality
erikjohnston a52eb83
Merge remote-tracking branch 'origin/develop' into erikj/global_cache…
erikjohnston b314dfc
Fix 'caches' identation
erikjohnston 6600a7c
Remove superflouous default None
erikjohnston e03a81c
Remove redundant setting of global_list_node
erikjohnston 939ce8d
Make new attributes private
erikjohnston ecab588
Fixup comments
erikjohnston 4181e1d
Improve comments and error handling when walking the graphs
erikjohnston 7d865a1
Fix up names and comments in _expire_old_entries
erikjohnston be2667d
Add explicit `create_root_node`
erikjohnston 1da43cb
Refactor so _ListNode doesn't take Clock
erikjohnston 73064e0
Update comment about shared weakref
erikjohnston dd6dfdd
Remove superfluous _CacheEntry protocol
erikjohnston df40007
Add lock to ensure list mutation is thread safe
erikjohnston a2f5c11
Merge remote-tracking branch 'origin/develop' into erikj/global_cache…
erikjohnston df298d1
Fix indent
erikjohnston c5f19d9
Review comments
erikjohnston 408e7c3
Move _ListNode to its own file
erikjohnston 2f3480e
Apply suggestions from code review
erikjohnston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for evicting cache entries based on last access time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
style guide says "use two-space indents".