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

Function SuggestionCacheSize

pkg/errors/cache.go:122–124  ·  view source on GitHub ↗

SuggestionCacheSize returns the number of entries currently held in the keyword suggestion cache. Use this for monitoring cache growth and deciding whether to adjust the maximum size.

()

Source from the content-addressed store, hash-verified

120// suggestion cache. Use this for monitoring cache growth and deciding whether to
121// adjust the maximum size.
122func SuggestionCacheSize() int {
123 return suggestionCache.size()
124}
125
126// SuggestionCacheStats holds observability metrics for the keyword suggestion cache.
127// Retrieve an instance via GetSuggestionCacheStats and reset counters via

Calls 1

sizeMethod · 0.45