Documentation
¶
Overview ¶
Package cache supports caching of DNS resource records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type 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.
func (*Cache) Add ¶
Add will put or append RRs r into the cache owned by their rr.RR.Name. RRs TTLs are interpreted as being relative to current time.
Click to show internal directories.
Click to hide internal directories.