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

Method RPUSH

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

Source from the content-addressed store, hash-verified

774}
775
776func (c Client) RPUSH(key string, elements ...Value) (newLength int64, err error) {
777 for _, element := range elements {
778 err = c.listPush(key, element, Right, nil)
779 if err != nil {
780 return newLength, err
781 }
782 }
783
784 newLength, err = c.LLEN(key)
785
786 return
787}
788
789func (c Client) RPUSHX(key string, elements ...Value) (newLength int64, err error) {
790 for _, element := range elements {

Callers 4

TestLBasicsFunction · 0.80
TestRPOPLPUSHFunction · 0.80
TestListIndexBasedCRUDFunction · 0.80
TestListValueBasedCRUDFunction · 0.80

Calls 2

listPushMethod · 0.95
LLENMethod · 0.95

Tested by 4

TestLBasicsFunction · 0.64
TestRPOPLPUSHFunction · 0.64
TestListIndexBasedCRUDFunction · 0.64
TestListValueBasedCRUDFunction · 0.64