Affected by GO-2026-6506
and 2 other vulnerabilities
GO-2026-6506 : CoreDNS DoH/DoQ/gRPC bypass UPDATE rejection enforced on UDP/TCP in github.com/coredns/coredns
GO-2026-6507 : CoreDNS: Unauthenticated memory exhaustion in custom transports in github.com/coredns/coredns
GO-2026-6805 : CoreDNS `k8s_external` headless AXFR can emit an empty transfer batch that panics the `transfer` plugin in github.com/coredns/coredns
Discover Packages
github.com/coredns/coredns
plugin
pkg
cache
package
Version:
v1.14.4
Opens a new window with list of versions in this module.
Published: Jun 9, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 166
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.