Skip to content

chore: refactor keycache implementation to reduce duplication #15100

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

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Oct 16, 2024

This PR consolidates the DBKeycache and WSProxyCache into the cache type while retaining the implementation from WSProxyCache. The function signatures have been updated to be compatible with the interfaces in jwtutils. If I'm being honest I'm not particularly satisfied with how the API for this turned out but I figured that's what PRs are for.

Fixes coder/internal#91

@sreya sreya requested a review from spikecurtis October 16, 2024 00:43
Copy link
Contributor

@spikecurtis spikecurtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice refactor! Very clean. Some suggestions / questions inline, but I don't need to review again.

@sreya sreya merged commit f537193 into main Oct 16, 2024
26 checks passed
@sreya sreya deleted the jon/refactorcache branch October 16, 2024 19:01
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor key caching to consolidate implementations
2 participants