size returns the number of cached entries
()
| 104 | |
| 105 | // size returns the number of cached entries |
| 106 | func (c *keywordSuggestionCache) size() int { |
| 107 | c.mu.RLock() |
| 108 | defer c.mu.RUnlock() |
| 109 | return len(c.cache) |
| 110 | } |
| 111 | |
| 112 | // ClearSuggestionCache removes all entries from the keyword suggestion cache. |
| 113 | // Call this in tests to ensure a clean state between test cases, or after |
no outgoing calls
no test coverage detected