Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grpc/grpc-go
/ Len
Method
Len
internal/cache/timeoutCache.go:147–151 ·
view source on GitHub ↗
Len returns the number of entries in the cache.
()
Source
from the content-addressed store, hash-verified
145
146
// Len returns the number of entries in the cache.
147
func
(c *TimeoutCache) Len() int {
148
c.mu.Lock()
149
defer
c.mu.Unlock()
150
return
len(c.cache)
151
}
Callers
4
TestCacheExpire
Method · 0.95
TestCacheRemove
Method · 0.95
TestCacheClearWithoutCallback
Method · 0.95
TestCacheClearWithCallback
Method · 0.95
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
4
TestCacheExpire
Method · 0.76
TestCacheRemove
Method · 0.76
TestCacheClearWithoutCallback
Method · 0.76
TestCacheClearWithCallback
Method · 0.76