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

Function Map

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

Map assembles the args in a map. Args should be raw redis commands. Must be an even number of arguments. Example: Map(String("foo"), String("bar"))

(args ...string)

Source from the content-addressed store, hash-verified

81// Must be an even number of arguments.
82// Example: Map(String("foo"), String("bar"))
83func Map(args ...string) string {
84 return fmt.Sprintf("%%%d\r\n", len(args)/2) + strings.Join(args, "")
85}
86
87// StringMap is a wrapper to get a map of (bulk)strings.
88func StringMap(args ...string) string {

Callers 2

TestTypesFunction · 0.70
StringMapFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestTypesFunction · 0.56