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

Maintain a cache of GitHub API responses #3

Closed
woodruffw opened this issue Aug 23, 2024 · 3 comments
Closed

Maintain a cache of GitHub API responses #3

woodruffw opened this issue Aug 23, 2024 · 3 comments

Comments

@woodruffw
Copy link
Owner

This shouldn't necessarily be cached at the API response layer itself, but we should cache in in some form. In particular:

  • A symbolic ref cache for each user/org slug requested (so we don't hammer the same APIs over and over)
@woodruffw
Copy link
Owner Author

#7 does this, but not to my satisfaction: the caches for these things should be present at the "run" layer, so that individual audit can reuse them. As-is, each audit needs to maintain its own cache.

@woodruffw
Copy link
Owner Author

https://github.com/moka-rs/moka looks like the right fit in terms of a robust cross-context caching library.

@woodruffw
Copy link
Owner Author

Done with #38.

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

No branches or pull requests

1 participant