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

Add Optional MX Lookup Cache for Enhanced Bulk Email Verification #143

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

emilianocalzada
Copy link

Features

  • Optional MX Lookup Cache: Disabled by default. Enable it by calling emailverifier.NewVerifier().EnableMXCache(1 * time.Hour).
  • Custom TTL: Allows setting a custom Time-To-Live (TTL) for cached MX records.
  • Automatic Cleanup: Runs a background ticker to remove expired cache records automatically.

Benefit

  • Resource Efficiency: Decreases DNS server load by reusing cached MX records.

Feel free to review and let me know if there are any adjustments needed!
close #142

@lryong lryong requested a review from OisCircle January 16, 2025 02:48
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.

feature request: MX Servers lookup cache
1 participant