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

Function cmdLLEN

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

Source from the content-addressed store, hash-verified

293 ldb.RPush(source, data) //revert pop
294 return nil, err
295 }
296
297 return data, nil
298}
299
300func cmdLLEN(m uhaha.Machine, args []string) (interface{}, error) {
301 if len(args) != 2 {
302 return nil, uhaha.ErrWrongNumArgs
303 }
304
305 n, err := ldb.LLen([]byte(args[1]))
306 if err != nil {
307 return nil, err
308 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected