MCPcopy
hub / github.com/nextdns/nextdns / Set

Method Set

resolver/resolver.go:34–34  ·  view source on GitHub ↗

Set stores value in the cache. The cache implementation is responsible for computing the cost (typically based on response size in bytes).

(key uint64, value *cacheValue)

Source from the content-addressed store, hash-verified

32 // Set stores value in the cache. The cache implementation is responsible for
33 // computing the cost (typically based on response size in bytes).
34 Set(key uint64, value *cacheValue)
35}
36
37type CacheStats struct {

Callers 7

resolveMethod · 0.65
SetMethod · 0.65
resolveMethod · 0.65
benchRistrettoGetHitFunction · 0.65
benchRistrettoSetFunction · 0.65
ExchangeMethod · 0.65

Implementers 1

ByteCacheresolver/bytecache.go

Calls

no outgoing calls

Tested by 3

benchRistrettoGetHitFunction · 0.52
benchRistrettoSetFunction · 0.52