(m uhaha.Machine, args []string)
| 156 | |
| 157 | return v, nil |
| 158 | } |
| 159 | |
| 160 | func cmdHLEN(m uhaha.Machine, args []string) (interface{}, error) { |
| 161 | if len(args) != 2 { |
| 162 | return nil, uhaha.ErrWrongNumArgs |
| 163 | } |
| 164 | |
| 165 | n, err := ldb.HLen([]byte(args[1])) |
| 166 | if err != nil { |
| 167 | return nil, err |
| 168 | } |
| 169 | |
| 170 | return n, nil |
| 171 | } |
| 172 |
nothing calls this directly
no outgoing calls
no test coverage detected