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

Method clear

pkg/errors/cache.go:99–103  ·  view source on GitHub ↗

clear removes all entries from the cache

()

Source from the content-addressed store, hash-verified

97
98// clear removes all entries from the cache
99func (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
106func (c *keywordSuggestionCache) size() int {

Callers 1

ClearSuggestionCacheFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected