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: Allow More Answer Types to Be Cacheable #465

Merged
merged 4 commits into from
Nov 1, 2024

Conversation

developStorm
Copy link
Member

@developStorm developStorm commented Oct 22, 2024

This PR introduces the WithBaseAnswer interface as the cache value type to allow broader answer types to be included in the cache. The answers_generate.go script, when run with go generate, implements the required interface function BaseAns for each eligible answer struct.

@developStorm developStorm requested a review from a team as a code owner October 22, 2024 23:46
@developStorm developStorm changed the title refactor/generic cache Refactor: Allow More Answer Types to Be Cacheable Oct 22, 2024
@developStorm developStorm self-assigned this Oct 22, 2024
@developStorm developStorm marked this pull request as draft October 22, 2024 23:51
Copy link
Contributor

@phillip-stephens phillip-stephens left a comment

Choose a reason for hiding this comment

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

LGTM once we add the license stuff

src/zdns/answers_generate.go Show resolved Hide resolved
src/zdns/cache.go Show resolved Hide resolved
@phillip-stephens
Copy link
Contributor

And for context, this is going to enable us to cache DNSKEY and DS entries so @developStorm can add DNSSEC validation support into ZDNS.

@developStorm developStorm marked this pull request as ready for review October 26, 2024 05:23
@developStorm developStorm force-pushed the refactor/generic-cache branch 3 times, most recently from d4b6483 to 63f8763 Compare November 1, 2024 12:36
@phillip-stephens phillip-stephens merged commit 0350588 into main Nov 1, 2024
3 checks passed
@developStorm developStorm deleted the refactor/generic-cache branch November 1, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants