module

Vug::DnsCache

DNS cache singleton with configurable TTL. TTL can be set via DnsCache.ttl= before first use.

Constants

DEFAULT_TTL = 5.minutes

Class methods

clear
Source
instance
Source
recreate

Recreate the singleton instance with the current TTL. Use after changing DnsCache.ttl= to apply the new TTL immediately.

Source
resolve(host : String) : Array(String)
Source
ttl=(ttl : Time::Span)
Source

Nested types