diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-04 07:19:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-01-04 07:19:32 +0000 |
commit | 7480e618ec785ba8a1c74c8a150cffe5880fb3bb (patch) | |
tree | 87422376dd9a7eee55850f0fce9a8bb4c13e44a2 /iredis/data/commands/rpop.md | |
parent | Adding upstream version 1.12.1. (diff) | |
download | iredis-7480e618ec785ba8a1c74c8a150cffe5880fb3bb.tar.xz iredis-7480e618ec785ba8a1c74c8a150cffe5880fb3bb.zip |
Adding upstream version 1.13.0.upstream/1.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/rpop.md')
-rw-r--r-- | iredis/data/commands/rpop.md | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/iredis/data/commands/rpop.md b/iredis/data/commands/rpop.md index 6233c03..99c863c 100644 --- a/iredis/data/commands/rpop.md +++ b/iredis/data/commands/rpop.md @@ -1,24 +1,19 @@ Removes and returns the last elements of the list stored at `key`. -By default, the command pops a single element from the end of the list. When -provided with the optional `count` argument, the reply will consist of up to -`count` elements, depending on the list's length. +By default, the command pops a single element from the end of the list. +When provided with the optional `count` argument, the reply will consist of up +to `count` elements, depending on the list's length. @return When called without the `count` argument: -@bulk-string-reply: the value of the last element, or `nil` when `key` does not -exist. +@bulk-string-reply: the value of the last element, or `nil` when `key` does not exist. When called with the `count` argument: @array-reply: list of popped elements, or `nil` when `key` does not exist. -@history - -- `>= 6.2`: Added the `count` argument. - @examples ```cli |