MCPcopy Create free account
hub / github.com/Super-long/ChubbyGo / ChubbyGoMapDelete

Method ChubbyGoMapDelete

BaseServer/chubbyGoMap.go:97–111  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

95}
96
97func (hs *ChubbyGoConcurrentMap) ChubbyGoMapDelete(key string){
98 if hs.Flag == SyncMap {
99
100 Map := hs.MapEntry.Addr().Interface().(*sync.Map)
101 Map.Delete(key)
102
103 } else if hs.Flag == ConcurrentMap {
104
105 Map := hs.MapEntry.Addr().Interface().(*ConcurrentHashMap)
106 Map.Remove(key)
107
108 } else {
109 log.Println("ERROR : ChubbyGoMapSet -> No such situation.")
110 }
111}

Calls 2

RemoveMethod · 0.80
DeleteMethod · 0.45