tencent cloud

Feedback

List Group

Last updated: 2024-11-25 15:28:30
The standard architecture of Redis 2.8 and the standard and cluster architectures of Redis 4.0, 5.0, 6.2, and 7.0 support the following commands: lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, blpop, brpop, and brpoplpush.
The standard architecture of Redis 2.8 and Redis 4.0 and 5.0 do not support the blmove, lmove, and lpos commands. However, these commands are supported in Redis 6.2 and 7.0.
Cluster architecture in cross-slot scenes does not support the rpoplpush, blpop, brpop, and brpoplpush commands.
Version 7.0 introduced the lmpop and blmpop commands.
Command Group
Command
New Description
List group
LMPOP numkeys key [key ...] <LEFT | RIGHT> [COUNT count]
A new command.
Pops COUNT elements from the list, with the direction controlled by LEFT | RIGHT.
Supports multi-key commands.
BLMPOP timeout numkeys key [key ...] <LEFT | RIGHT> [COUNT count]
A new command.
Blocking version of lmpop, with the blocking duration set by timeout.
When blmpop is used within multi exec, it behaves the same as lmpop. This specification is defined by Redis, and the proxy does not apply any special handling.
For more information, see the table below, where ✓ indicates support, x indicates no support, and - indicates that the command does not apply to cross-slot scenes.
Command
2.8 Memory Edition (Standard Architecture)
4.0 Memory Edition (Standard Architecture)
4.0 Memory Edition (Cluster Architecture)
5.0 Memory Edition (Standard Architecture)
5.0 Memory Edition (Cluster Architecture)
6.2 Memory Edition (Standard Architecture)
6.2 Memory Edition (Cluster Architecture)
7.0 Memory Edition (Standard Architecture)
7.0 Memory Edition (Cluster Architecture)
Memory Edition (Cluster Architecture) Cross-Slot Support
lindex
-
linsert
-
llen
-
lpop
-
lpush
-
lpushx
-
lrange
-
lrem
-
lset
-
ltrim
-
rpop
-
rpoplpush
x
rpush
-
rpushx
-
blpop
x
brpop
x
brpoplpush
x
blmove
x
x
x
x
x
-
lpos
x
x
x
x
x
-
lmove
x
x
x
x
x
-
lmpop
x
x
x
x
x
x
x
-
blmpop
x
x
x
x
x
x
x
-
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support