MCPcopy Create free account
hub / github.com/encoder-run/operator / withNamespace

Function withNamespace

pkg/cache/redis/storage.go:70–79  ·  view source on GitHub ↗
(ns string, keyType string, key string)

Source from the content-addressed store, hash-verified

68}
69
70func withNamespace(ns string, keyType string, key string) string {
71 k := ns
72 if keyType != "" {
73 k = fmt.Sprintf("%s:%s", k, keyType)
74 }
75 if key != "" {
76 k = fmt.Sprintf("%s:%s", k, key)
77 }
78 return k
79}

Callers 15

SetIndexMethod · 0.85
IndexMethod · 0.85
SetShallowMethod · 0.85
ShallowMethod · 0.85
SetReferenceMethod · 0.85
ReferenceMethod · 0.85
CheckAndSetReferenceMethod · 0.85
CountLooseRefsMethod · 0.85
fetchNextBatchMethod · 0.85
SetEncodedObjectMethod · 0.85
EncodedObjectMethod · 0.85
EncodedObjectSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected