MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / OddKey

Function OddKey

IceFireDB-PubSub/pkg/router/namespace.go:43–51  ·  view source on GitHub ↗
(arg []interface{})

Source from the content-addressed store, hash-verified

41}
42
43func OddKey(arg []interface{}) []uint8 {
44 index := make([]uint8, (len(arg)-1)/2)
45 var val int
46 for k := range index {
47 val = k
48 index[k] = uint8(1 + val<<1)
49 }
50 return index
51}
52
53var cmdKeyMap = map[string]makeKeyFunc{
54 "MGET": allKey,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected