(key string)
| 439 | } |
| 440 | |
| 441 | func existsKey(key string) (bool, error) { |
| 442 | n, err := ldb.Exists([]byte(key)) |
| 443 | if err != nil { |
| 444 | return false, err |
| 445 | } |
| 446 | return n > 0, nil |
| 447 | } |
| 448 | |
| 449 | func cmdDECRBY(m uhaha.Machine, args []string) (interface{}, error) { |
| 450 | // 1. Validate the number of arguments |