tencent cloud

Strings Group
Last updated:2025-12-25 17:47:40
Strings Group
Last updated: 2025-12-25 17:47:40
Redis versions 2.8 (Standard Architecture), 4.0, 5.0, 6.2, 7.0, and ValKey 8.0 (both Standard Architecture and Cluster Architecture) support the append, bitcount, bitop, bitpos, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, mget, mset, msetnx, psetex, setex, set, setbit, setnx, setrange, and strlen commands.
Redis version 2.8 Standard Architecture does not support bitfield, while Redis versions 4.0, 5.0, and 6.2 all support it.
Redis 4.0 and 5.0 do not support the bitfield_ro, getdel, and stralgo commands.
6.2, 7.0, and ValKey 8.0 version support bitfield_ro, getdel, stralgo, getex.
Cluster Architecture in cross-slot scenarios supports the mget and mset commands, but does not support the bitop and msetnx commands.
Redis version 7.0 and ValKey 8.0 support the lcs command, as detailed below.
Command Family
Command
New Description
string family
SET key value [NX | XX] [GET] [EX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | KEEPTTL]
New parameters added: NX and GET.
NX: Not exists, sets the key-value pair only when the key does not exist.
GET: Sets the new value and returns the old value.
BITPOS key bit [start [end [BYTE | BIT]]]
New parameters added: BYTE and BIT. Specifies the unit of offset. BYTE: indicates byte offset; BIT: indicates bit offset. Defaults to BYTE.
LCS key1 key2 [LEN] [IDX] [MINMATCHLEN min-match-len] [WITHMATCHLEN]
New commands added.
Returns the longest common subsequence of two keys.
Specific support information for each version, see the table below. ✓ indicates support, x indicates no support, - indicates that the command does not involve cross-slot access scenarios.
Command
Redis 7.0/ValKey 8.0 Standard Architecture
Redis 7.0/ValKey 8.0 Cluster Architecture
Redis 6.2 Standard Architecture
Redis 6.2 Cluster Architecture
Redis 5.0 Standard Architecture
Redis 5.0 Cluster Architecture
Redis 4.0 Standard Architecture
Redis 4.0 Cluster Architecture
Redis 2.8 Standard Architecture
Cluster Architecture Cross-Slot Support
append
-
bitcount
-
bitop
x
bitpos
-
decr
-
decrby
-
get
-
getbit
-
getrange
-
getset
-
incr
-
incrby
-
incrbyfloat
-
mget
mset
msetnx
x
psetex
-
setex
-
set
-
setbit
-
setnx
-
setrange
-
strlen
-
bitfield
x
-
bitfield_ro
x
x
x
x
x
-
stralgo
x
x
x
x
x
-
getdel
x
x
x
x
x
-
getex
x
x
x
x
x
-
lcs
x
x
x
x
x
x
x
-
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback