DnsCache.store

void store(scope const(char)[] hostname, scope const(IpAddress)[] addresses, uint ttlSeconds = 0) @trusted

Store a successful DNS result in the cache.

Parameters

hostnameHostname that was resolved.
addressesResolved IP addresses.
ttlSecondsCache TTL in seconds. Clamped to [minTtl, maxTtl]. Uses defaultTtl when zero.