Affected by GO-2022-0368
and 1 other vulnerabilities
GO-2022-0368 : Improper random number generation in github.com/coredns/coredns
GO-2024-3130 : CoreDNS vulnerable to TuDoor Attacks in github.com/coredns/coredns
Discover Packages
github.com/coredns/coredns
plugin
pkg
cache
package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Dec 31, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 160
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.
Cache is cache.
Add adds a new element to the cache. If the element already exists it is overwritten.
Get looks up element index under key.
Len returns the number of elements in the cache.
Remove removes the element indexed with key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.