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

refactor(accesscontrol,schema): cache usage abstractions #246

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

aruiz14
Copy link
Contributor

@aruiz14 aruiz14 commented Jul 18, 2024

Stacked on #245

This PR makes some refactoring around the use of caches in pkg/accesscontrol and pkg/schema, in preparation for a follow up PR that will allow change the underlying cache backend (instead of LRUExpireCache), more info about this in that PR.

These changes introduce a new Cache interface with defined key/value types using generics, which should serve as compile-time validation for entries added to the cache, as well as making those fields more self-descriptive.

@aruiz14 aruiz14 changed the title fix(accesscontrol): CacheKey could not be stable refactor(accesscontrol,schema): cache usage abstractions Jul 18, 2024
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.

1 participant