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

Function cmdLCLEAR

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

Source from the content-addressed store, hash-verified

183 n, err := ldb.LMclear(keys...)
184 if err != nil {
185 return nil, err
186 }
187 return redcon.SimpleInt(n), nil
188}
189
190func cmdLCLEAR(m uhaha.Machine, args []string) (interface{}, error) {
191 if len(args) != 2 {
192 return nil, uhaha.ErrWrongNumArgs
193 }
194
195 n, err := ldb.LClear([]byte(args[1]))
196 if err != nil {
197 return nil, err
198 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected