(m uhaha.Machine, args []string)
| 114 | } |
| 115 | |
| 116 | func cmdZCOUNT(m uhaha.Machine, args []string) (interface{}, error) { |
| 117 | if len(args) != 4 { |
| 118 | return nil, uhaha.ErrWrongNumArgs |
| 119 | } |
| 120 | |
| 121 | min, max, err := zparseScoreRange([]byte(args[2]), []byte(args[3])) |
| 122 | if err != nil { |
| 123 | return nil, err |
| 124 | } |
| 125 | |
| 126 | count, err := ldb.ZCount([]byte(args[1]), int64(min), int64(max)) |
| 127 | if err != nil { |
| 128 | return nil, err |
| 129 | } |
| 130 | |
| 131 | return count, nil |
| 132 | } |
| 133 | |
| 134 | func cmdZCARD(m uhaha.Machine, args []string) (interface{}, error) { |
| 135 | if len(args) < 2 { |
nothing calls this directly
no test coverage detected