MCPcopy Create free account
hub / github.com/bigwhite/experiments / LoadOrStore

Method LoadOrStore

inside-syncmap/syncmap/sync/map.go:227–260  ·  view source on GitHub ↗

LoadOrStore returns the existing value for the key if present. Otherwise, it stores and returns the given value. The loaded result is true if the value was loaded, false if stored.

(key, value interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

getTypeInfoFunction · 0.80

Calls 7

missLockedMethod · 0.95
dirtyLockedMethod · 0.95
newEntryFunction · 0.85
LoadMethod · 0.80
tryLoadOrStoreMethod · 0.80
unexpungeLockedMethod · 0.80
StoreMethod · 0.80

Tested by

no test coverage detected