Set assembles the args in a map. Args should be raw redis commands. Example: Set(String("foo"), String("bar"))
(args ...string)
| 96 | // Set assembles the args in a map. Args should be raw redis commands. |
| 97 | // Example: Set(String("foo"), String("bar")) |
| 98 | func 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. |
| 103 | func StringSet(args ...string) string { |