pub fn get_min_ttl_secs(message: &Message) -> Option<u32>
Expand description

Finds the minimum TTL across all resources in a Message, or None if there are no resources. This is a utility for caching where we want to detect how much the response TTLs should be reduced. For example, if the cache says that the remaining TTL is 20s, but the minimum resource TTL value is 30s, then 10s has passed and all resources should be have TTLs reduced by 10s.