# HG changeset patch # User Kim Alvefur # Date 1367938285 -7200 # Node ID 74ae3e7e8779b7d29d4ab86b152f61447724d665 # Parent 6dd806829226bc342b82eeca09ad37af2e059114 net.dns: Add nicer API to cached records diff -r 6dd806829226 -r 74ae3e7e8779 net/dns.lua --- a/net/dns.lua Tue May 07 10:42:44 2013 -0400 +++ b/net/dns.lua Tue May 07 16:51:25 2013 +0200 @@ -1072,6 +1072,10 @@ return _resolver:settimeout(...); end +function dns.cache() + return _resolver.cache; +end + function dns.socket_wrapper_set(...) -- - - - - - - - - socket_wrapper_set return _resolver:socket_wrapper_set(...); end