(m uhaha.Machine, args []string)
| 30 | } |
| 31 | |
| 32 | func cmdSADD(m uhaha.Machine, args []string) (interface{}, error) { |
| 33 | if len(args) < 3 { |
| 34 | return nil, uhaha.ErrWrongNumArgs |
| 35 | } |
| 36 | n, err := ldb.SAdd([]byte(args[1]), stringSliceToBytes(args[2:])...) |
| 37 | return redcon.SimpleInt(n), err |
| 38 | } |
| 39 | |
| 40 | func soptGeneric(args [][]byte, optType byte) ([][]byte, error) { |
| 41 | if len(args) < 2 { |
nothing calls this directly
no test coverage detected