-
Notifications
You must be signed in to change notification settings - Fork 579
/
index.html
563 lines (446 loc) · 31.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redis 命令参考 — Redis 命令参考</title>
<script type="text/javascript" src="_static/js/modernizr.min.js"></script>
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="字符串" href="string/index.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="#" class="icon icon-home"> Redis 命令参考
</a>
<div class="version">
2019
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul>
<li class="toctree-l1"><a class="reference internal" href="string/index.html">字符串</a></li>
<li class="toctree-l1"><a class="reference internal" href="hash/index.html">哈希表</a></li>
<li class="toctree-l1"><a class="reference internal" href="list/index.html">列表</a></li>
<li class="toctree-l1"><a class="reference internal" href="set/index.html">集合</a></li>
<li class="toctree-l1"><a class="reference internal" href="sorted_set/index.html">有序集合</a></li>
<li class="toctree-l1"><a class="reference internal" href="hyperloglog/index.html">HyperLogLog</a></li>
<li class="toctree-l1"><a class="reference internal" href="geo/index.html">地理位置</a></li>
<li class="toctree-l1"><a class="reference internal" href="bitmap/index.html">位图</a></li>
<li class="toctree-l1"><a class="reference internal" href="database/index.html">数据库</a></li>
<li class="toctree-l1"><a class="reference internal" href="expire/index.html">自动过期</a></li>
<li class="toctree-l1"><a class="reference internal" href="transaction/index.html">事务</a></li>
<li class="toctree-l1"><a class="reference internal" href="script/index.html">Lua 脚本</a></li>
<li class="toctree-l1"><a class="reference internal" href="persistence/index.html">持久化</a></li>
<li class="toctree-l1"><a class="reference internal" href="pubsub/index.html">发布与订阅</a></li>
<li class="toctree-l1"><a class="reference internal" href="replication/index.html">复制</a></li>
<li class="toctree-l1"><a class="reference internal" href="client_and_server/index.html">客户端与服务器</a></li>
<li class="toctree-l1"><a class="reference internal" href="configure/index.html">配置选项</a></li>
<li class="toctree-l1"><a class="reference internal" href="debug/index.html">调试</a></li>
<li class="toctree-l1"><a class="reference internal" href="internal/index.html">内部命令</a></li>
<li class="toctree-l1"><a class="reference internal" href="topic/index.html">功能文档</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="#">Redis 命令参考</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="#">Docs</a> »</li>
<li>Redis 命令参考</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/index.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="redis">
<h1>Redis 命令参考<a class="headerlink" href="#redis" title="Permalink to this headline">¶</a></h1>
<p>本文档是 <a class="reference external" href="http://redis.io/commands">Redis Command Reference</a> 和 <a class="reference external" href="http://redis.io/documentation">Redis Documentation</a> 的中文翻译版,
阅读这个文档可以帮助你了解 Redis 命令的具体使用方法,
并学会如何使用 Redis 的事务、持久化、复制、Sentinel、集群等功能。</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<img alt="_images/guide-cover.png" class="align-left" src="_images/guide-cover.png" />
<div class="line-block">
<div class="line">由本文档译者黄健宏创作的《Redis使用手册》正在热卖中,欢迎选购:<a class="reference external" href="http://redisguide.com/">RedisGuide.com</a> 。</div>
<div class="line"><br /></div>
<div class="line"><br /></div>
</div>
</div>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="string/index.html">字符串</a><ul>
<li class="toctree-l2"><a class="reference internal" href="string/set.html">SET</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/setnx.html">SETNX</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/setex.html">SETEX</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/psetex.html">PSETEX</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/get.html">GET</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/getset.html">GETSET</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/strlen.html">STRLEN</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/append.html">APPEND</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/setrange.html">SETRANGE</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/getrange.html">GETRANGE</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/incr.html">INCR</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/incrby.html">INCRBY</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/incrbyfloat.html">INCRBYFLOAT</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/decr.html">DECR</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/decrby.html">DECRBY</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/mset.html">MSET</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/msetnx.html">MSETNX</a></li>
<li class="toctree-l2"><a class="reference internal" href="string/mget.html">MGET</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="hash/index.html">哈希表</a><ul>
<li class="toctree-l2"><a class="reference internal" href="hash/hset.html">HSET</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hsetnx.html">HSETNX</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hget.html">HGET</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hexists.html">HEXISTS</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hdel.html">HDEL</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hlen.html">HLEN</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hstrlen.html">HSTRLEN</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hincrby.html">HINCRBY</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hincrbyfloat.html">HINCRBYFLOAT</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hmset.html">HMSET</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hmget.html">HMGET</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hkeys.html">HKEYS</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hvals.html">HVALS</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hgetall.html">HGETALL</a></li>
<li class="toctree-l2"><a class="reference internal" href="hash/hscan.html">HSCAN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="list/index.html">列表</a><ul>
<li class="toctree-l2"><a class="reference internal" href="list/lpush.html">LPUSH</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/lpushx.html">LPUSHX</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/rpush.html">RPUSH</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/rpushx.html">RPUSHX</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/lpop.html">LPOP</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/rpop.html">RPOP</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/rpoplpush.html">RPOPLPUSH</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/lrem.html">LREM</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/llen.html">LLEN</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/lindex.html">LINDEX</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/linsert.html">LINSERT</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/lset.html">LSET</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/lrange.html">LRANGE</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/ltrim.html">LTRIM</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/blpop.html">BLPOP</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/brpop.html">BRPOP</a></li>
<li class="toctree-l2"><a class="reference internal" href="list/brpoplpush.html">BRPOPLPUSH</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="set/index.html">集合</a><ul>
<li class="toctree-l2"><a class="reference internal" href="set/sadd.html">SADD</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/sismember.html">SISMEMBER</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/spop.html">SPOP</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/srandmember.html">SRANDMEMBER</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/srem.html">SREM</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/smove.html">SMOVE</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/scard.html">SCARD</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/smembers.html">SMEMBERS</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/sscan.html">SSCAN</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/sinter.html">SINTER</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/sinterstore.html">SINTERSTORE</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/sunion.html">SUNION</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/sunionstore.html">SUNIONSTORE</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/sdiff.html">SDIFF</a></li>
<li class="toctree-l2"><a class="reference internal" href="set/sdiffstore.html">SDIFFSTORE</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="sorted_set/index.html">有序集合</a><ul>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zadd.html">ZADD</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zscore.html">ZSCORE</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zincrby.html">ZINCRBY</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zcard.html">ZCARD</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zcount.html">ZCOUNT</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zrange.html">ZRANGE</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zrevrange.html">ZREVRANGE</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zrangebyscore.html">ZRANGEBYSCORE</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zrevrangebyscore.html">ZREVRANGEBYSCORE</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zrank.html">ZRANK</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zrevrank.html">ZREVRANK</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zrem.html">ZREM</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zremrangebyrank.html">ZREMRANGEBYRANK</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zremrangebyscore.html">ZREMRANGEBYSCORE</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zrangebylex.html">ZRANGEBYLEX</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zlexcount.html">ZLEXCOUNT</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zremrangebylex.html">ZREMRANGEBYLEX</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zscan.html">ZSCAN</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zunionstore.html">ZUNIONSTORE</a></li>
<li class="toctree-l2"><a class="reference internal" href="sorted_set/zinterstore.html">ZINTERSTORE</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="hyperloglog/index.html">HyperLogLog</a><ul>
<li class="toctree-l2"><a class="reference internal" href="hyperloglog/pfadd.html">PFADD</a></li>
<li class="toctree-l2"><a class="reference internal" href="hyperloglog/pfcount.html">PFCOUNT</a></li>
<li class="toctree-l2"><a class="reference internal" href="hyperloglog/pfmerge.html">PFMERGE</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="geo/index.html">地理位置</a><ul>
<li class="toctree-l2"><a class="reference internal" href="geo/geoadd.html">GEOADD</a></li>
<li class="toctree-l2"><a class="reference internal" href="geo/geopos.html">GEOPOS</a></li>
<li class="toctree-l2"><a class="reference internal" href="geo/geodist.html">GEODIST</a></li>
<li class="toctree-l2"><a class="reference internal" href="geo/georadius.html">GEORADIUS</a></li>
<li class="toctree-l2"><a class="reference internal" href="geo/georadiusbymember.html">GEORADIUSBYMEMBER</a></li>
<li class="toctree-l2"><a class="reference internal" href="geo/geohash.html">GEOHASH</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="bitmap/index.html">位图</a><ul>
<li class="toctree-l2"><a class="reference internal" href="bitmap/setbit.html">SETBIT</a></li>
<li class="toctree-l2"><a class="reference internal" href="bitmap/getbit.html">GETBIT</a></li>
<li class="toctree-l2"><a class="reference internal" href="bitmap/bitcount.html">BITCOUNT</a></li>
<li class="toctree-l2"><a class="reference internal" href="bitmap/bitpos.html">BITPOS</a></li>
<li class="toctree-l2"><a class="reference internal" href="bitmap/bitop.html">BITOP</a></li>
<li class="toctree-l2"><a class="reference internal" href="bitmap/bitfield.html">BITFIELD</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="database/index.html">数据库</a><ul>
<li class="toctree-l2"><a class="reference internal" href="database/exists.html">EXISTS</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/type.html">TYPE</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/rename.html">RENAME</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/renamenx.html">RENAMENX</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/move.html">MOVE</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/del.html">DEL</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/randomkey.html">RANDOMKEY</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/dbsize.html">DBSIZE</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/keys.html">KEYS</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/scan.html">SCAN</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/sort.html">SORT</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/flushdb.html">FLUSHDB</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/flushall.html">FLUSHALL</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/select.html">SELECT</a></li>
<li class="toctree-l2"><a class="reference internal" href="database/swapdb.html">SWAPDB</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="expire/index.html">自动过期</a><ul>
<li class="toctree-l2"><a class="reference internal" href="expire/expire.html">EXPIRE</a></li>
<li class="toctree-l2"><a class="reference internal" href="expire/expireat.html">EXPIREAT</a></li>
<li class="toctree-l2"><a class="reference internal" href="expire/ttl.html">TTL</a></li>
<li class="toctree-l2"><a class="reference internal" href="expire/persist.html">PERSIST</a></li>
<li class="toctree-l2"><a class="reference internal" href="expire/pexpire.html">PEXPIRE</a></li>
<li class="toctree-l2"><a class="reference internal" href="expire/pexpireat.html">PEXPIREAT</a></li>
<li class="toctree-l2"><a class="reference internal" href="expire/pttl.html">PTTL</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="transaction/index.html">事务</a><ul>
<li class="toctree-l2"><a class="reference internal" href="transaction/multi.html">MULTI</a></li>
<li class="toctree-l2"><a class="reference internal" href="transaction/exec.html">EXEC</a></li>
<li class="toctree-l2"><a class="reference internal" href="transaction/discard.html">DISCARD</a></li>
<li class="toctree-l2"><a class="reference internal" href="transaction/watch.html">WATCH</a></li>
<li class="toctree-l2"><a class="reference internal" href="transaction/unwatch.html">UNWATCH</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="script/index.html">Lua 脚本</a><ul>
<li class="toctree-l2"><a class="reference internal" href="script/eval.html">EVAL</a></li>
<li class="toctree-l2"><a class="reference internal" href="script/evalsha.html">EVALSHA</a></li>
<li class="toctree-l2"><a class="reference internal" href="script/script_load.html">SCRIPT_LOAD</a></li>
<li class="toctree-l2"><a class="reference internal" href="script/script_exists.html">SCRIPT_EXISTS</a></li>
<li class="toctree-l2"><a class="reference internal" href="script/script_flush.html">SCRIPT_FLUSH</a></li>
<li class="toctree-l2"><a class="reference internal" href="script/script_kill.html">SCRIPT_KILL</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="persistence/index.html">持久化</a><ul>
<li class="toctree-l2"><a class="reference internal" href="persistence/save.html">SAVE</a></li>
<li class="toctree-l2"><a class="reference internal" href="persistence/bgsave.html">BGSAVE</a></li>
<li class="toctree-l2"><a class="reference internal" href="persistence/bgrewriteaof.html">BGREWRITEAOF</a></li>
<li class="toctree-l2"><a class="reference internal" href="persistence/lastsave.html">LASTSAVE</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="pubsub/index.html">发布与订阅</a><ul>
<li class="toctree-l2"><a class="reference internal" href="pubsub/publish.html">PUBLISH</a></li>
<li class="toctree-l2"><a class="reference internal" href="pubsub/subscribe.html">SUBSCRIBE</a></li>
<li class="toctree-l2"><a class="reference internal" href="pubsub/psubscribe.html">PSUBSCRIBE</a></li>
<li class="toctree-l2"><a class="reference internal" href="pubsub/unsubscribe.html">UNSUBSCRIBE</a></li>
<li class="toctree-l2"><a class="reference internal" href="pubsub/punsubscribe.html">PUNSUBSCRIBE</a></li>
<li class="toctree-l2"><a class="reference internal" href="pubsub/pubsub.html">PUBSUB</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="replication/index.html">复制</a><ul>
<li class="toctree-l2"><a class="reference internal" href="replication/slaveof.html">SLAVEOF</a></li>
<li class="toctree-l2"><a class="reference internal" href="replication/role.html">ROLE</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="client_and_server/index.html">客户端与服务器</a><ul>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/auth.html">AUTH</a></li>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/quit.html">QUIT</a></li>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/info.html">INFO</a></li>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/shutdown.html">SHUTDOWN</a></li>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/time.html">TIME</a></li>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/client_getname.html">CLIENT_GETNAME</a></li>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/client_kill.html">CLIENT_KILL</a></li>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/client_list.html">CLIENT_LIST</a></li>
<li class="toctree-l2"><a class="reference internal" href="client_and_server/client_setname.html">CLIENT_SETNAME</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="configure/index.html">配置选项</a><ul>
<li class="toctree-l2"><a class="reference internal" href="configure/config_set.html">CONFIG_SET</a></li>
<li class="toctree-l2"><a class="reference internal" href="configure/config_get.html">CONFIG_GET</a></li>
<li class="toctree-l2"><a class="reference internal" href="configure/config_resetstat.html">CONFIG_RESETSTAT</a></li>
<li class="toctree-l2"><a class="reference internal" href="configure/config_rewrite.html">CONFIG_REWRITE</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="debug/index.html">调试</a><ul>
<li class="toctree-l2"><a class="reference internal" href="debug/ping.html">PING</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug/echo.html">ECHO</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug/object.html">OBJECT</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug/slowlog.html">SLOWLOG</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug/monitor.html">MONITOR</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug/debug_object.html">DEBUG_OBJECT</a></li>
<li class="toctree-l2"><a class="reference internal" href="debug/debug_segfault.html">DEBUG_SEGFAULT</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="internal/index.html">内部命令</a><ul>
<li class="toctree-l2"><a class="reference internal" href="internal/migrate.html">MIGRATE</a></li>
<li class="toctree-l2"><a class="reference internal" href="internal/dump.html">DUMP</a></li>
<li class="toctree-l2"><a class="reference internal" href="internal/restore.html">RESTORE</a></li>
<li class="toctree-l2"><a class="reference internal" href="internal/sync.html">SYNC</a></li>
<li class="toctree-l2"><a class="reference internal" href="internal/psync.html">PSYNC</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="topic/index.html">功能文档</a><ul>
<li class="toctree-l2"><a class="reference internal" href="topic/cluster-spec.html">Redis 集群规范</a></li>
<li class="toctree-l2"><a class="reference internal" href="topic/persistence.html">持久化(persistence)</a></li>
<li class="toctree-l2"><a class="reference internal" href="topic/pubsub.html">发布与订阅(pub/sub)</a></li>
<li class="toctree-l2"><a class="reference internal" href="topic/sentinel.html">Sentinel</a></li>
<li class="toctree-l2"><a class="reference internal" href="topic/cluster-tutorial.html">集群教程</a></li>
<li class="toctree-l2"><a class="reference internal" href="topic/notification.html">键空间通知(keyspace notification)</a></li>
<li class="toctree-l2"><a class="reference internal" href="topic/protocol.html">通信协议(protocol)</a></li>
<li class="toctree-l2"><a class="reference internal" href="topic/replication.html">复制(Replication)</a></li>
<li class="toctree-l2"><a class="reference internal" href="topic/transaction.html">事务(transaction)</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="id1">
<h2>关于<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<p>本文档由 <a class="reference external" href="http://www.huangz.me">黄健宏(huangz)</a> 翻译,
版权归 Redis 官方所有。</p>
<p><a class="reference internal" href="change_log.html#change-log"><span class="std std-ref">更新日志(change log)</span></a> 列出了本文档的主要更新细节,
你也可以通过关注 <a class="reference external" href="https://github.com/huangz1990/redis">文档的 github 项目</a> 来随时追踪文档的最新更新信息。</p>
<p>有任何问题、意见或建议,
请在文档配套的 disqus 论坛里留言,
或者直接联系译者。</p>
</div>
<div class="section" id="id2">
<h2>Redis 书籍推荐<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<img alt="_images/guide-cover.png" class="align-left" src="_images/guide-cover.png" />
<p>由本文档译者黄健宏创作的《Redis 使用手册》正在热销中,
该书详细地介绍了 Redis 各个命名的描述及其使用方法,
是 Redis 使用者和初学者必不可少的参考书。</p>
<div class="line-block">
<div class="line">欢迎访问 <a class="reference external" href="http://redisguide.com">RedisGuide.com</a> 并了解关于《Redis 使用手册》的更多信息。</div>
<div class="line"><br /></div>
</div>
<hr class="docutils" />
<img alt="_images/cover.png" class="align-left" src="_images/cover.png" />
<p>由本文档译者黄健宏创作的《Redis 设计与实现》一书正在热销中,
该书详细地介绍了 Redis 内部的运作原理以及各项功能的实现原理,
是一本致力于帮助 Redis 使用者加深对 Redis 的理解,
并且更高效地使用 Redis 的书籍。</p>
<div class="line-block">
<div class="line">欢迎访问 <a class="reference external" href="http://www.RedisBook.com">RedisBook.com</a> 并了解《Redis 设计与实现》的更多相关信息。</div>
</div>
<hr class="docutils" />
<img alt="_images/riacn-cover.png" class="align-left" src="_images/riacn-cover.png" />
<p>由本文档译者黄健宏翻译的《Redis实战》一书正在火热发售中,
该书深入浅出地介绍了 Redis 的五种数据结构,
并通过一系列实用的示例深刻地展示了 Redis 的用法。
此外,
《Redis实战》还介绍了多种扩展和优化 Redis 的方法,
无论是 Redis 新手还是有一定经验的 Redis 使用者,
应该都能从此书中获益。</p>
<p>欢迎访问 <a class="reference external" href="http://redisinaction.com">redisinaction.com</a> 并了解《Redis实战》的更多相关信息。</p>
</div>
<div class="section" id="id4">
<h2>参加群讨论<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
<p>欢迎各位《Redis命令参考》读者加入译者开设的 QQ 群,
你可以在里面分享你的 Redis 使用心得,
又或者跟其他群友讨论你在使用 Redis 过程中遇到的问题,
具体的群号请访问译者的<a class="reference external" href="http://huangz.me">个人主页</a> 查看。</p>
</div>
</div>
<div class="section" id="discuss">
<h2>
讨论
<a class="headerlink" href="#discuss" title="永久链接至标题">¶</a>
</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'redis-command-cn'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<!--
<div id="sponser">
<h2>赞助商</h2>
<p>我们正在寻找赞助商,有意对这个网站进行赞助的朋友请联系 [email protected] 。</p>
</div>
-->
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="string/index.html" class="btn btn-neutral float-right" title="字符串" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>
© Copyright 2019, Redis
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53959484-7', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>