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

Function ClearSuggestionCache

pkg/errors/cache.go:115–117  ·  view source on GitHub ↗

ClearSuggestionCache removes all entries from the keyword suggestion cache. Call this in tests to ensure a clean state between test cases, or after modifying the keyword list so that stale suggestions are not served.

()

Source from the content-addressed store, hash-verified

113// Call this in tests to ensure a clean state between test cases, or after
114// modifying the keyword list so that stale suggestions are not served.
115func ClearSuggestionCache() {
116 suggestionCache.clear()
117}
118
119// SuggestionCacheSize returns the number of entries currently held in the keyword
120// suggestion cache. Use this for monitoring cache growth and deciding whether to

Calls 1

clearMethod · 0.45