(m uhaha.Machine, args []string)
| 355 | } |
| 356 | return redcon.SimpleInt(v), nil |
| 357 | } |
| 358 | |
| 359 | func cmdHPERSIST(m uhaha.Machine, args []string) (interface{}, error) { |
| 360 | if len(args) != 2 { |
| 361 | return nil, uhaha.ErrWrongNumArgs |
| 362 | } |
| 363 | |
| 364 | n, err := ldb.HPersist([]byte(args[1])) |
| 365 | if err != nil { |
| 366 | return nil, err |
| 367 | } |
| 368 | return redcon.SimpleInt(n), nil |
| 369 | } |
| 370 |
nothing calls this directly
no outgoing calls
no test coverage detected