Method: HTTPX::Resolver.cached_lookup

Defined in:
lib/httpx/resolver.rb

.cached_lookup(hostname) ⇒ Object



54
55
56
57
58
59
# File 'lib/httpx/resolver.rb', line 54

def cached_lookup(hostname)
  now = Utils.now
  lookup_synchronize do |lookups|
    lookup(hostname, lookups, now)
  end
end