clear removes all entries from the cache
()
| 97 | |
| 98 | // clear removes all entries from the cache |
| 99 | func (c *keywordSuggestionCache) clear() { |
| 100 | c.mu.Lock() |
| 101 | defer c.mu.Unlock() |
| 102 | c.cache = make(map[string]string) |
| 103 | } |
| 104 | |
| 105 | // size returns the number of cached entries |
| 106 | func (c *keywordSuggestionCache) size() int { |
no outgoing calls
no test coverage detected