func cmdLPERSIST(m uhaha.Machine, args []string) (interface{}, error) { if len(args) != 2 { return nil, uhaha.ErrWrongNumArgs } n, err := ldb.LPersist([]byte(args[1])) if err != nil { return nil, err } return redcon.SimpleInt(n), nil }
(m uhaha.Machine, args []string)
| 102 | // n, err := ldb.LPersist([]byte(args[1])) |
| 103 | // if err != nil { |
| 104 | // return nil, err |
| 105 | // } |
| 106 | // return redcon.SimpleInt(n), nil |
| 107 | // } |
| 108 | |
| 109 | func cmdLTTL(m uhaha.Machine, args []string) (interface{}, error) { |
| 110 | if len(args) != 2 { |
| 111 | return nil, uhaha.ErrWrongNumArgs |
| 112 | } |
| 113 | |
| 114 | v, err := ldb.LTTL([]byte(args[1])) |
| 115 | if err != nil { |
| 116 | return nil, err |
| 117 | } |
nothing calls this directly
no outgoing calls
no test coverage detected