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.
()
| 120 | // suggestion cache. Use this for monitoring cache growth and deciding whether to |
| 121 | // adjust the maximum size. |
| 122 | func 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 |