MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / LPOP

Method LPOP

lists.go:344–347  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

342}
343
344func (c Client) LPOP(key string) (element ReturnValue, err error) {
345 element, _, err = c.listPop(key, Left)
346 return
347}
348
349func (c Client) listPop(key string, side LSide) (element ReturnValue, ok bool, err error) {
350 element, transactItems, ok, err := c.listPopActions(key, side)

Callers 2

TestLBasicsFunction · 0.80
TestRPOPLPUSHFunction · 0.80

Calls 1

listPopMethod · 0.95

Tested by 2

TestLBasicsFunction · 0.64
TestRPOPLPUSHFunction · 0.64