Skip to content

Commit 3ebb71d

Browse files
committed
Update dump.html
1 parent dc2c641 commit 3ebb71d

File tree

1 file changed

+21
-41
lines changed

1 file changed

+21
-41
lines changed

cn/commands/dump.html

Lines changed: 21 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@
1111
<title>
1212
DUMP – Redis
1313
</title>
14-
<script type='text/javascript'>
15-
//<![CDATA[
16-
var _gaq = _gaq || [];
17-
_gaq.push(['_setAccount', 'UA-20243082-1']);
18-
_gaq.push(['_trackPageview']);
19-
20-
(function() {
21-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
22-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
23-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
24-
})();
25-
//]]>
26-
</script>
2714
</head>
2815
<body class=''><style type="text/css">#modify_div {position: fixed;right: 0px;top: 60px; background-color: #000000; height: 30px;width: 100px;border-top-width: 2px;border-right-width: 2px;border-bottom-width: 2px;border-left-width: 2px;border-top-style: dashed;border-right-style: none;border-bottom-style: dashed;border-left-style: dashed;border-top-color: #333333;border-right-color: #333333;border-bottom-color: #333333;border-left-color: #333333;}#modify {display: block;position: fixed;right: 23px;top: 70px;color: #FFFFFF;text-decoration: none;font-size: 12px;font-weight: bold;}#modify:hover {text-decoration: underline;}</style><div id="modify_div"></div><a href="https://github.com/jialechan/redis-doc-cn/edit/gh-pages/cn/commands/dump.html" id="modify" target="_blank">修改本页</a><script>$('#modify_div').css('opacity', '0.6'); </script>
2916
<header>
@@ -162,39 +149,37 @@ <h2>
162149
</ul>
163150
</aside>
164151
<div class='metadata'>
165-
<p><strong>Available since 2.6.0.</strong></p>
166-
<p><strong>Time complexity:</strong> O(1) to access the key and additional O(N*M) to serialized it, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1).</p>
152+
<p><strong>始于2.6.0可用。</strong></p>
153+
<p><strong>时间负责度:</strong>查找给定键的复杂度为 O(1) ,
154+
对键进行序列化的复杂度为 O(N*M) ,其中 N 是构成 key 的 Redis 对象的数量,
155+
而 M 则是这些对象的平均大小。
156+
For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1).
157+
如果序列化的对象是比较小的字符串,复杂度因此O(1)+O(1*M),这里M很小,所以约等于O(1) 。</p>
167158
</div>
168-
<p>Serialize the value stored at key in a Redis-specific format and return it to
169-
the user.
170-
The returned value can be synthesized back into a Redis key using the <a href="restore.html">RESTORE</a>
171-
command.</p>
159+
<p>用特定的Redis格式序列化value到给定的key,并将他返回给用户,
160+
使用RESTORE命令可以将这个值反序列化为 Redis 键。</p>
172161

173-
<p>The serialization format is opaque and non-standard, however it has a few
174-
semantical characteristics:</p>
162+
<p>这个序列化格式是不透明和非标准的,然而他有一些语义特征:</p>
175163

176164
<ul>
177-
<li>It contains a 64-bit checksum that is used to make sure errors will be
178-
detected.
179-
The <a href="restore.html">RESTORE</a> command makes sure to check the checksum before synthesizing a
180-
key using the serialized value.</li>
181-
<li>Values are encoded in the same format used by RDB.</li>
182-
<li>An RDB version is encoded inside the serialized value, so that different Redis
183-
versions with incompatible RDB formats will refuse to process the serialized
184-
value.</li>
165+
<li>它包含一个64位的校验码以确保错误可以被检测到。
166+
<a href="restore.html">RESTORE</a>命令会在将一个序列化值序反列化为键之前检查这个校验码。</li>
167+
<li>值会被和RDB一样的格式来编码。</li>
168+
<li>RDB版本会被编码到序列化的值里面,
169+
所以不同的Redis版本之间不兼容的RDB格式,Redis将会被拒绝去处理那些已序列化的值。
170+
</li>
185171
</ul>
186172

187-
<p>The serialized value does NOT contain expire information.
188-
In order to capture the time to live of the current value the <a href="pttl.html">PTTL</a> command
189-
should be used.</p>
173+
<p>序列化值不会包含到期时间的信息。
174+
为了获得当前值的生存时间,应该使用<a href="pttl.html">PTTL</a>命令。</p>
190175

191-
<p>If <code>key</code> does not exist a nil bulk reply is returned.</p>
176+
<p>如果<code>key</code>不存在,将会返回nil。</p>
192177

193-
<h2>Return value</h2>
178+
<h2>返回值</h2>
194179

195-
<p><a href="../topics/protocol.html#bulk-string-reply">Bulk string reply</a>: the serialized value.</p>
180+
<p><a href="../topics/protocol.html#bulk-string-reply">Bulk string reply</a>: 序列化值。</p>
196181

197-
<h2>Examples</h2>
182+
<h2>例子</h2>
198183

199184
<div class='example' data-session='f2d7902db38993ea6e640cd0de94c46a'>
200185
<span class='monospace prompt'>redis&gt;&nbsp;</span>
@@ -249,8 +234,3 @@ <h2>Examples</h2>
249234
</footer>
250235
</body>
251236
</html>
252-
<script type="text/javascript">
253-
lloogg_clientid = "20bb9c026e";
254-
</script>
255-
<script type="text/javascript" src="http://demo.lloogg.com/l.js?c=20bb9c026e">
256-
</script>

0 commit comments

Comments
 (0)