(m uhaha.Machine, args []string)
| 257 | } |
| 258 | |
| 259 | func cmdZCLEAR(m uhaha.Machine, args []string) (interface{}, error) { |
| 260 | if len(args) < 2 { |
| 261 | return nil, uhaha.ErrWrongNumArgs |
| 262 | } |
| 263 | |
| 264 | n, err := ldb.ZClear([]byte(args[1])) |
| 265 | if err != nil { |
| 266 | return nil, err |
| 267 | } |
| 268 | |
| 269 | return redcon.SimpleInt(n), nil |
| 270 | } |
| 271 | |
| 272 | func cmdZREM(m uhaha.Machine, args []string) (interface{}, error) { |
| 273 | if len(args) < 3 { |
nothing calls this directly
no outgoing calls
no test coverage detected