(m uhaha.Machine, args []string)
| 167 | v, err := ldb.LExpireAt([]byte(args[1]), timestamp) |
| 168 | if err != nil { |
| 169 | return nil, err |
| 170 | } |
| 171 | return redcon.SimpleInt(v), nil |
| 172 | } |
| 173 | |
| 174 | func cmdLMCLEAR(m uhaha.Machine, args []string) (interface{}, error) { |
| 175 | if len(args) < 2 { |
| 176 | return nil, uhaha.ErrWrongNumArgs |
| 177 | } |
| 178 | |
| 179 | keys := make([][]byte, len(args)-1) |
| 180 | for i := 1; i < len(args); i++ { |
| 181 | keys[i-1] = []byte(args[i]) |
| 182 | } |
| 183 | n, err := ldb.LMclear(keys...) |
| 184 | if err != nil { |
| 185 | return nil, err |
| 186 | } |
nothing calls this directly
no outgoing calls
no test coverage detected