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

Function cmdLPOP

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

Source from the content-addressed store, hash-verified

398 if len(v) == 0 {
399 return nil, nil
400 }
401
402 return v, nil
403}
404
405func cmdLPOP(m uhaha.Machine, args []string) (interface{}, error) {
406 if len(args) != 2 {
407 return nil, uhaha.ErrWrongNumArgs
408 }
409
410 v, err := ldb.LPop([]byte(args[1]))
411 if err != nil {
412 return nil, err
413 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected