Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenListTeam/OpenList
/ Clear
Method
Clear
pkg/generic_sync/map.go:378–383 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
376
}
377
378
func
(m *MapOf[K, V]) Clear() {
379
m.Range(
func
(key K, value V) bool {
380
m.Delete(key)
381
return
true
382
})
383
}
384
385
func
(m *MapOf[K, V]) missLocked() {
386
m.misses++
Callers
nothing calls this directly
Calls
2
Range
Method · 0.95
Delete
Method · 0.95
Tested by
no test coverage detected