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

Function Array

IceFireDB-PubSub/test/proto/types.go:49–51  ·  view source on GitHub ↗

Array assembles the args in a list. Args should be raw redis commands. Example: Array(String("foo"), String("bar"))

(args ...string)

Source from the content-addressed store, hash-verified

47// Array assembles the args in a list. Args should be raw redis commands.
48// Example: Array(String("foo"), String("bar"))
49func Array(args ...string) string {
50 return fmt.Sprintf("*%d\r\n", len(args)) + strings.Join(args, "")
51}
52
53// Push assembles the args for push-data. Args should be raw redis commands.
54// Example: Push(String("foo"), String("bar"))

Callers 8

TestSscanFunction · 0.92
TestZscanFunction · 0.92
TestMgetFunction · 0.92
TestHashMgetFunction · 0.92
TestHscanFunction · 0.92
TestTypesFunction · 0.70
StringsFunction · 0.70
IntsFunction · 0.70

Calls

no outgoing calls

Tested by 6

TestSscanFunction · 0.74
TestZscanFunction · 0.74
TestMgetFunction · 0.74
TestHashMgetFunction · 0.74
TestHscanFunction · 0.74
TestTypesFunction · 0.56