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

Method size

pkg/errors/cache.go:106–110  ·  view source on GitHub ↗

size returns the number of cached entries

()

Source from the content-addressed store, hash-verified

104
105// size returns the number of cached entries
106func (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

Callers 2

SuggestionCacheSizeFunction · 0.45
GetSuggestionCacheStatsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected