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