(m uhaha.Machine, args []string)
| 78 | |
| 79 | if err := ldb.LTrim([]byte(args[1]), start, stop); err != nil { |
| 80 | return nil, err |
| 81 | } |
| 82 | return redcon.SimpleString("OK"), nil |
| 83 | } |
| 84 | |
| 85 | func cmdLKEYEXISTS(m uhaha.Machine, args []string) (interface{}, error) { |
| 86 | if len(args) != 2 { |
| 87 | return nil, uhaha.ErrWrongNumArgs |
| 88 | } |
| 89 | |
| 90 | n, err := ldb.LKeyExists([]byte(args[1])) |
| 91 | if err != nil { |
| 92 | return nil, err |
| 93 | } |
nothing calls this directly
no outgoing calls
no test coverage detected