RpushCommand: Contents
      RPUSH _key_ _string_
      LPUSH _key_ _string_
    Return value

RpushCommand

#sidebar ListCommandsSidebar

RPUSH _key_ _string_

LPUSH _key_ _string_

Time complexity: O(1)
Add the string value to the head (RPUSH) or tail (LPUSH) of the liststored at key. If the key does not exist an empty list is created just beforethe append operation. If the key exists but is not a List an erroris returned.

Return value

Status code reply