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

Method RPUSHX

lists.go:789–800  ·  view source on GitHub ↗
(key string, elements ...Value)

Source from the content-addressed store, hash-verified

787}
788
789func (c Client) RPUSHX(key string, elements ...Value) (newLength int64, err error) {
790 for _, element := range elements {
791 err = c.listPush(key, element, Right, Flags{IfAlreadyExists})
792 if err != nil {
793 return newLength, err
794 }
795 }
796
797 newLength, err = c.LLEN(key)
798
799 return
800}

Callers 2

LINSERTMethod · 0.95
TestLBasicsFunction · 0.80

Calls 2

listPushMethod · 0.95
LLENMethod · 0.95

Tested by 1

TestLBasicsFunction · 0.64