MCPcopy Create free account
hub / github.com/flyteorg/flyte / Insert

Method Insert

flytestdlib/cache/sync_set.go:19–21  ·  view source on GitHub ↗

Insert adds a new key to the set if it doesn't already exist.

(key interface{})

Source from the content-addressed store, hash-verified

17
18// Insert adds a new key to the set if it doesn't already exist.
19func (s *syncSet) Insert(key interface{}) {
20 s.underlying.Store(key, emptyVal)
21}
22
23// Remove deletes a key from the set.
24func (s *syncSet) Remove(key interface{}) {

Callers 14

GetPodTolerationsFunction · 0.45
DeleteDelayedMethod · 0.45
rangeAndRemoveFunction · 0.45
TestSyncSet_ContainsFunction · 0.45
NewCounterFunction · 0.45
NewHistogramStopWatchFunction · 0.45
NewSummaryFunction · 0.45
NewStopWatchFunction · 0.45
NewGaugeFunction · 0.45
NewConfigCommandFunction · 0.45
printDocsFunction · 0.45

Calls 1

StoreMethod · 0.45

Tested by 2

rangeAndRemoveFunction · 0.36
TestSyncSet_ContainsFunction · 0.36