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

Cache GitHub App Installations #334

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Cache GitHub App Installations #334

merged 1 commit into from
Jun 24, 2024

Conversation

sethvargo
Copy link
Contributor

This caches GitHub App Installations after their initial creation, so future invocations return the exact same installation struct without making upstream API calls. To minimize lock contention, values written into the map are closures which are resolved on invocation. This allows parallel goroutines to resolve installations while still maintaining lock integrity.

This caches GitHub App Installations after their initial creation, so future invocations return the exact same installation struct without making upstream API calls. To minimize lock contention, values written into the map are closures which are resolved on invocation. This allows parallel goroutines to resolve installations while still maintaining lock integrity.
@sethvargo sethvargo requested a review from a team as a code owner June 24, 2024 19:26
@sethvargo sethvargo requested a review from capri-xiyue June 24, 2024 19:26
@sethvargo sethvargo requested review from yolocs and sqin2019 June 24, 2024 19:26
@sethvargo sethvargo enabled auto-merge (squash) June 24, 2024 19:27
@sethvargo sethvargo merged commit 1ae590c into main Jun 24, 2024
2 checks passed
@sethvargo sethvargo deleted the sethvargo/cache branch June 24, 2024 19:55
@token-minter-prod token-minter-prod bot mentioned this pull request Jun 24, 2024
token-minter-prod bot added a commit that referenced this pull request Jun 24, 2024
## What's Changed
* Cache GitHub App Installations by @sethvargo in
#334


**Full Changelog**:
v1.1.0...v1.1.1

Co-authored-by: token-minter-prod[bot] <125072751+token-minter-prod[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants