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

Function cmdRPOP

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

Source from the content-addressed store, hash-verified

347 v, err := ldb.LRange([]byte(args[1]), int32(start), int32(stop))
348 if err != nil {
349 return nil, err
350 }
351 return v, nil
352}
353
354func cmdRPOP(m uhaha.Machine, args []string) (interface{}, error) {
355 if len(args) != 2 {
356 return nil, uhaha.ErrWrongNumArgs
357 }
358
359 v, err := ldb.RPop([]byte(args[1]))
360 if err != nil {
361 return nil, err
362 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected