(m uhaha.Machine, args []string)
| 132 | } |
| 133 | |
| 134 | func cmdZCARD(m uhaha.Machine, args []string) (interface{}, error) { |
| 135 | if len(args) < 2 { |
| 136 | return nil, uhaha.ErrWrongNumArgs |
| 137 | } |
| 138 | |
| 139 | n, err := ldb.ZCard([]byte(args[1])) |
| 140 | if err != nil { |
| 141 | return nil, err |
| 142 | } |
| 143 | |
| 144 | return redcon.SimpleInt(n), nil |
| 145 | } |
| 146 | |
| 147 | func cmdZRANGE(m uhaha.Machine, args []string) (interface{}, error) { |
| 148 | if len(args) < 4 { |
nothing calls this directly
no outgoing calls
no test coverage detected