Array assembles the args in a list. Args should be raw redis commands. Example: Array(String("foo"), String("bar"))
(args ...string)
| 47 | // Array assembles the args in a list. Args should be raw redis commands. |
| 48 | // Example: Array(String("foo"), String("bar")) |
| 49 | func Array(args ...string) string { |
| 50 | return fmt.Sprintf("*%d\r\n", len(args)) + strings.Join(args, "") |
| 51 | } |
| 52 | |
| 53 | // Push assembles the args for push-data. Args should be raw redis commands. |
| 54 | // Example: Push(String("foo"), String("bar")) |