tencent cloud

Strings Group
마지막 업데이트 시간:2024-11-25 15:37:56
Strings Group
마지막 업데이트 시간: 2024-11-25 15:37:56
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: append, bitcount, bitop, bitpos, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, mget, mset, msetnx, psetex, setex, set, setbit, setnx, setrange, and strlen.
The standard architecture of Redis 2.8 does not support the bitfield command, while Redis 4.0, 5.0, and 6.2 do.
Redis 4.0 and 5.0 do not support the bitfield_ro, getdel, and stralgo commands.
Versions 6.2 and 7.0 support the bitfield_ro, getdel, stralgo, and getex commands.
In a cluster architecture, cross-slot access is applicable to the mget and mset commands other than the bitop and msetnx commands.
The lcs command is introduced in version 7.0, with updates as detailed below.
Command Group
Command
New Description
String group
SET key value [NX | XX] [GET] [EX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | KEEPTTL]
New NX and GET parameters.
NX: Represents Not exists and sets the key-value pair only if the key does not exist.
GET: Sets a new value and returns the old value.
BITPOS key bit [start [end [BYTE | BIT]]]
New BYTE and BIT parameters that specify the unit of offset. BYTE: Represents the offset in bytes. BIT: Represents the offset in bits. The default value is BYTE.
LCS key1 key2 [LEN] [IDX] [MINMATCHLEN min-match-len] [WITHMATCHLEN]
A new command.
Returns the longest common subsequence between two keys.
The supported command details for each version are shown in the table below, where ✓ indicates support, x indicates not support, and - indicates that the command does not involve cross-slot access scenarios.
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
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
-
문제 해결에 도움이 되었나요?
더 자세한 내용은 문의하기 또는 티켓 제출 을 통해 문의할 수 있습니다.
아니오

피드백