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)
| 81 | // Must be an even number of arguments. |
| 82 | // Example: Map(String("foo"), String("bar")) |
| 83 | func 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. |
| 88 | func StringMap(args ...string) string { |