MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / cmdLMCLEAR

Function cmdLMCLEAR

lists.go:169–183  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

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
174func 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 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected