Affected by GO-2026-4969
and 4 other vulnerabilities
GO-2026-4969 : CoreDNS' DoQ worker pool does not bound stream backlog in github.com/coredns/coredns
GO-2026-5164 : CoreDNS DoH GET oversized dns= query parameter causes pre-validation CPU and memory amplification in github.com/coredns/coredns
GO-2026-5417 : CoreDNS' transfer stanza selection uses lexicographic compare (subzone ACL bypass) in github.com/coredns/coredns
GO-2026-5583 : CoreDNS has TSIG authentication bypass on DoT, DoH, DoH3, DoQ, and gRPC in github.com/coredns/coredns
GO-2026-5667 : CoreDNS has TSIG authentication bypass on gRPC and QUIC transports in github.com/coredns/coredns
Discover Packages
github.com/coredns/coredns
plugin
pkg
cache
package
Version:
v1.14.2
Opens a new window with list of versions in this module.
Published: Mar 6, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 165
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package cache implements a cache. The cache hold 256 shards, each shard
holds a cache: a map with a mutex. There is no fancy expunge algorithm, it
just randomly evicts elements when it gets full.
Hash returns the FNV hash of what.
type Cache[T any ] struct {
}
Cache is cache.
Add adds a new element to the cache. If the element already exists it is overwritten.
Returns true if an existing element was evicted to make room for this element.
Get looks up element index under key.
Len returns the number of elements in the cache.
Remove removes the element indexed with key.
Walk walks each shard in the cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.