email-verifier icon indicating copy to clipboard operation
email-verifier copied to clipboard

Add Optional MX Lookup Cache for Enhanced Bulk Email Verification

Open emilianocalzada opened this issue 1 year ago • 0 comments

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

emilianocalzada avatar Dec 04 '24 19:12 emilianocalzada