Push assembles the args for push-data. Args should be raw redis commands. Example: Push(String("foo"), String("bar"))
(args ...string)
| 53 | // Push assembles the args for push-data. Args should be raw redis commands. |
| 54 | // Example: Push(String("foo"), String("bar")) |
| 55 | func Push(args ...string) string { |
| 56 | return fmt.Sprintf(">%d\r\n", len(args)) + strings.Join(args, "") |
| 57 | } |
| 58 | |
| 59 | // Strings is a helper to build 1 dimensional string arrays. |
| 60 | func Strings(args ...string) string { |