Skip to content

Commit 9aeebaa

Browse files
Petriespinlock
authored andcommitted
Update redis_change_zh.md document. (#1513)
1 parent b60693a commit 9aeebaa

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

doc/redis_change_zh.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
### redis 修改部分(增加若干指令) ###
1+
### redis 修改部分(增加若干指令)
22
--------------------------------
33

4-
#####SLOTSINFO [start] [count]#####
4+
##### SLOTSINFO [start] [count]
55

66
+ 命令说明:获取 redis 中 slot 的个数以及每个 slot 的大小
77

@@ -32,7 +32,7 @@
3232
2) 1) (integer) 29
3333
2) (integer) 1
3434

35-
#####SLOTSSCAN slotnum cursor [COUNT count]
35+
##### SLOTSSCAN slotnum cursor [COUNT count]
3636

3737
+ 命令说明:获取指定 slotnum 下的 key 列表
3838

@@ -65,7 +65,7 @@
6565
9) "{a}9211"
6666
10) "{a}6596"
6767

68-
#####SLOTSDEL slot1 [slot2 …]#####
68+
##### SLOTSDEL slot1 [slot2 …]
6969

7070
+ 命令说明:删除 redis 中若干 slot 下的全部 key-value
7171

@@ -81,7 +81,7 @@
8181
2) 1) (integer) 990
8282
2) (integer) 0
8383

84-
####数据迁移####
84+
#### 数据迁移
8585
---------------
8686

8787
**以下4个命令是一族命令:**
@@ -103,7 +103,7 @@
103103
将与指定 key 具有相同 tag 的所有 key-value 对迁移到目标机
104104

105105

106-
#####SLOTSMGRTSLOT host port timeout slot#####
106+
##### SLOTSMGRTSLOT host port timeout slot
107107

108108
+ 命令说明:随机选择 slot 下的 1 个 key-value 到迁移到目标机(同步 IO 操作)
109109

@@ -161,7 +161,7 @@
161161
(integer) 0 # 成功成功个数为 0;当前 slot 已经空了
162162

163163

164-
#####SLOTSMGRTONE host port timeout key#####
164+
##### SLOTSMGRTONE host port timeout key
165165

166166
+ 命令说明:迁移 key 到目标机,与 slotsmgrtslot 相同
167167

@@ -186,7 +186,7 @@
186186
localhost:6379> slotsmgrtone 127.0.0.1 6380 100 a
187187
(integer) 0 # 放弃迁移,本地已经不存在了
188188

189-
#####SLOTSMGRTTAGONE host port timeout key#####
189+
##### SLOTSMGRTTAGONE host port timeout key
190190

191191
+ 命令说明:迁移与 key 有相同的 tag 的所有 key 到目标机
192192

@@ -221,13 +221,13 @@
221221
2) 1) "a{tag}"
222222
2) "b{tag}"
223223

224-
#####SLOTSMGRTTAGSLOT host port timeout slot#####
224+
##### SLOTSMGRTTAGSLOT host port timeout slot
225225

226226
+ 命令说明:与 slotsmgrtslot 对应的迁移指令
227227

228228
- 其他说明参考 slotsmgrtslot 以及 slotsmgrttagone 的解释即可
229229

230-
#####SLOTSRESTORE key1 ttl1 val1 [key2 ttl2 val2 …]#####
230+
##### SLOTSRESTORE key1 ttl1 val1 [key2 ttl2 val2 …]
231231

232232
+ 命令说明:该命令是对 redis-2.8 的 restore 命令的扩展
233233

@@ -237,10 +237,10 @@
237237

238238
+ **备注:与 restore 不同的是,slotsrestore 只支持 replace,即一定** ***覆盖旧值*** **。如果旧值已经存在,那么只可能是 redis-slots 或者 proxy 的实现 bug,程序会通过 redisLog 打印一条冲突记录。**
239239

240-
####调试相关####
240+
#### 调试相关
241241
---------------
242242

243-
#####SLOTSHASHKEY key1 [key2 …]#####
243+
##### SLOTSHASHKEY key1 [key2 …]
244244

245245
+ 命令说明:计算并返回给定 key 的 slot 序号
246246

@@ -260,7 +260,7 @@
260260
2) (integer) 1017
261261
3) (integer) 879
262262

263-
#####SLOTSCHECK#####
263+
##### SLOTSCHECK
264264

265265
+ 命令说明:对 redis 内的 slots 进行一致性检查,即满足如下两条
266266

0 commit comments

Comments
 (0)