(m uhaha.Machine, args []string)
| 367 | } |
| 368 | return redcon.SimpleInt(n), nil |
| 369 | } |
| 370 | |
| 371 | func cmdHKEYEXISTS(m uhaha.Machine, args []string) (interface{}, error) { |
| 372 | if len(args) != 2 { |
| 373 | return nil, uhaha.ErrWrongNumArgs |
| 374 | } |
| 375 | |
| 376 | n, err := ldb.HKeyExists([]byte(args[1])) |
| 377 | if err != nil { |
| 378 | return nil, err |
| 379 | } |
| 380 | return redcon.SimpleInt(n), nil |
| 381 | } |
nothing calls this directly
no outgoing calls
no test coverage detected