MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / ResetSuggestionCacheStats

Function ResetSuggestionCacheStats

pkg/errors/cache.go:178–182  ·  view source on GitHub ↗

ResetSuggestionCacheStats zeroes all hit, miss, and eviction counters in the keyword suggestion cache without clearing cached entries. Call this at the start of a benchmark or monitoring interval to obtain a clean measurement window.

()

Source from the content-addressed store, hash-verified

176// keyword suggestion cache without clearing cached entries. Call this at the start
177// of a benchmark or monitoring interval to obtain a clean measurement window.
178func ResetSuggestionCacheStats() {
179 atomic.StoreUint64(&suggestionCache.hits, 0)
180 atomic.StoreUint64(&suggestionCache.misses, 0)
181 atomic.StoreUint64(&suggestionCache.evictions, 0)
182}

Calls

no outgoing calls