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

Improve decorater error handling #6

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Improve decorater error handling #6

merged 1 commit into from
Feb 20, 2024

Conversation

janbjorge
Copy link
Owner

@janbjorge janbjorge commented Feb 20, 2024

This patch streamlines error handling in the pgcachewatch library's cache decorator by simplifying cache hit and miss management and improving exception handling. It replaces context management with explicit exception handling for cache operations and introduces futures for cache misses to prevent stampedes, ensuring concurrent calls await the first call's completion.

@janbjorge janbjorge self-assigned this Feb 20, 2024
@janbjorge janbjorge marked this pull request as ready for review February 20, 2024 16:52
@janbjorge janbjorge merged commit 5b49846 into main Feb 20, 2024
14 checks passed
@janbjorge janbjorge deleted the imp-error-handling branch February 20, 2024 16:53
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