This is a goinstall-able mirror of modified code already published at:
http://git.nic.cz/redmine/projects/godns/repository/show/cache
Online godoc documentation for this package (should be) available at:
http://gopkgdoc.appspot.com/pkg/github.com/cznic/dns/cache
type Cache struct {
// contains filtered or unexported fields
}
Cache is a cache holding DNS RRs. Cache is organized as a dns.Tree.
Cache handles RR TTLs, expired RRs are removed as encountered.
Cache is safe for concurrent access.
Get will return rrs and true if non expired cached RRs owned by name are present in the cache.
If Get encounters expired RRs they are scheduled for removal and not returned.