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

Function Set

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

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

(args ...string)

Source from the content-addressed store, hash-verified

96// Set assembles the args in a map. Args should be raw redis commands.
97// Example: Set(String("foo"), String("bar"))
98func Set(args ...string) string {
99 return fmt.Sprintf("~%d\r\n", len(args)) + strings.Join(args, "")
100}
101
102// StringSet is a wrapper to get a set of (bulk)strings.
103func StringSet(args ...string) string {

Callers 2

TestTypesFunction · 0.70
StringSetFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestTypesFunction · 0.56