MCPcopy
hub / github.com/coredns/coredns / Name

Method Name

plugin/cache/handler.go:185–185  ·  view source on GitHub ↗

Name implements the Handler interface.

()

Source from the content-addressed store, hash-verified

183
184// Name implements the Handler interface.
185func (c *Cache) Name() string { return "cache" }
186
187// getIfNotStale returns an item if it exists in the cache and has not expired.
188func (c *Cache) getIfNotStale(now time.Time, state request.Request, server string) *item {

Callers 2

ServeDNSMethod · 0.95
doRefreshMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected