-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to override lock duration (by allowing additional configurabili…
…ty) (#36) * Allow an UpdateStatuses instance to be passed in to wrapper The `UpdateStatuses` class parameterizes lock duration; however, there is currently no way for this parameter to be set. Additionally, debugging or instrumentation may call for inspecting state of tasks responsible for updating cache keys; an externally-instantiated `UpdateStatuses` instance makes this more feasible. * Preserve update_status_tracker through partial call * * Reworked ability to configure `UpdateStatuses` (for instance to update lock duration) * Split default implementation into an interface and a default implementation * Added docs & updated version --------- Co-authored-by: Charles Duffy <[email protected]> Co-authored-by: Michał Żmuda <[email protected]>
- Loading branch information
1 parent
3ccc9bb
commit 0b720c9
Showing
7 changed files
with
64 additions
and
24 deletions.
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
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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ def prepare_description(): | |
|
||
setup( | ||
name='py-memoize', | ||
version='3.0.0', | ||
version='3.1.0', | ||
author='Michal Zmuda', | ||
author_email='[email protected]', | ||
url='https://github.com/DreamLab/memoize', | ||
|
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