MCPcopy Create free account
hub / github.com/cloudwan/gohan / Clear

Function Clear

singleton/singleton.go:69–73  ·  view source on GitHub ↗

Clear removes singleton for a given key.

(key string)

Source from the content-addressed store, hash-verified

67
68// Clear removes singleton for a given key.
69func Clear(key string) {
70 mu.Lock()
71 defer mu.Unlock()
72 c.Set(key, nil)
73}

Callers

nothing calls this directly

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected