StringMap is a wrapper to get a map of (bulk)strings.
(args ...string)
| 86 | |
| 87 | // StringMap is a wrapper to get a map of (bulk)strings. |
| 88 | func StringMap(args ...string) string { |
| 89 | var strings []string |
| 90 | for _, a := range args { |
| 91 | strings = append(strings, String(a)) |
| 92 | } |
| 93 | return Map(strings...) |
| 94 | } |
| 95 | |
| 96 | // Set assembles the args in a map. Args should be raw redis commands. |
| 97 | // Example: Set(String("foo"), String("bar")) |