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. |
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 | ✓ | ✓ | - |
Was this page helpful?