MCPcopy Create free account
hub / github.com/PostHog/duckgres / Has

Method Has

cmd/cache-proxy/cache.go:164–171  ·  view source on GitHub ↗

Has returns true if the cache contains the given key.

(key string)

Source from the content-addressed store, hash-verified

162 // of tracked entry sizes.
163 maxBytes int64
164 maxEntries int
165 hardMaxEntries int
166 currentSize int64
167 maxPercent int
168 blockSize int64
169 space capacityProvider
170
171 // Consecutive above-current samples are required before raising capacity.
172 // Reductions apply immediately to restore the filesystem reserve.
173 recoveryCandidate int64
174 recoverySamples int

Callers 7

HandlePeerHasMethod · 0.80
TestDiskCachePutGetHasFunction · 0.80
TestDiskCacheEvictionFunction · 0.80
TestPutStreamRoundTripFunction · 0.80

Calls 1

IsValidCacheKeyFunction · 0.85

Tested by 6

TestDiskCachePutGetHasFunction · 0.64
TestDiskCacheEvictionFunction · 0.64
TestPutStreamRoundTripFunction · 0.64