Skip to main content

Module dns_cache

Module dns_cache 

Source
Available on crate feature dns_cache only.
Expand description

DNS pre-resolution cache with TTL.

Structs§

DnsCache
Thread-safe DNS resolution cache with configurable TTL.
DnsCacheResolver
Wrapper that holds an Arc<DnsCache> so it can be moved into async futures returned by [Resolve::resolve].

Functions§

shared_dns_cache
Global shared DNS cache with 5-minute TTL, wrapped for reqwest.