Skip to content

Idea: cache successful dns lookups? #55

@HeyHugo

Description

@HeyHugo

Would it make sense to cache (in memory) dns records that got a match to prevent a large amount of dns lookups for common email providers like gmail.com, hotmail.com etc?

If also caching non matches is fine functools.lru_cache decorator could be added to validate_email_deliverability, otherwise some custom logic could be written to keep a small cache of recent valid domains.

What do you think? I could probably make a PR if you like it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions