tencent cloud

Feedback

Last updated: 2024-11-25 15:23:00
The standard and cluster architectures of Redis 4.0, 5.0, 6.2, and 7.0 support the following commands: touch, restore, object, unlink, wait, dump, del, scan, exists, expire, expireat, keys, type, move, ttl, persist, pexpire, pexpireat, pttl, randomkey, rename, renamenx, and sort.
Only Redis 6.2 and 7.0 support the copy and object help commands.
In cross-slot scenes for the cluster architecture, the del and exists commands are supported, while unlink, rename, and renamenx are not supported.
New commands supported in the Redis 7.0: sort_ro, expiretime, and pexpiretime.
Command Group
Command
New Description
Keys group
EXPIRETIME key
A new command.
Returns the second-level timestamp of a key's expiration time.
PEXPIRETIME key
A new command.
Returns the millisecond-level timestamp of a key's expiration time.
EXPIRE key seconds [NX | XX | GT | LT]

Added NX | XX | GT | LT parameters.
NX: Sets the expiration time only if the key does not have the expiration time.
XX: Sets the expiration time only if the key has the expiration time.
GT: Sets the new expiration time only if it is greater than the current expiration time.
LT: Sets the new expiration time only if it is less than the current expiration time.
SORT_RO key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC | DESC] [ALPHA]
A new command.
Sorts the sorted sets in Redis and retrieves the sorted results.
For more information, see the table below, where ✓ indicates support, x indicates not support, and - indicates that the command does not involve a cross-slot access scene.
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
touch
x
-
restore
-
object
-
object help
x
x
x
x
x
-
unlink
x
x
wait
x
-
migrate
x
x
x
x
x
x
x
x
x
-
dump
-
del
scan
-
exists
expire
-
expireat
-
keys
-
type
-
move
-
ttl
-
persist
-
pexpire
-
pexpireat
-
pttl
-
randomkey
-
rename
x
renamenx
x
sort
-
sort_ro
x
x
x
x
x
x
x
-
copy
x
x
x
x
x
-
expiretime
x
x
x
x
x
x
x
-
pexpiretime
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