-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add possibility to cache dns lookups
Add optional argument dns_resolver_cache to validate_email. dns_resolver_cache can be either an instance of dns.resolver.Cache or dns.resolver.LRUCache. If passed lookups will be cached according to the specified class. dns.resolver.Cache can take a cleaning_interval argument and dns.resolver.LRUCache can take a max_size argument. This can lead to fewer dns lookups needed since many domains of large email providers will likely be in cache.
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters