implement clear_cache() for resolver service

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-03-15 04:08:57 +00:00
commit 8010505853
3 changed files with 27 additions and 1 deletions

View file

@ -78,6 +78,10 @@ impl Resolver {
server: server.clone(),
}))
}
/// Clear the in-memory hickory-dns caches
#[inline]
pub fn clear_cache(&self) { self.resolver.clear_cache(); }
}
impl Resolve for Resolver {