Skip to content

Commit

Permalink
关闭 mathjax 插件
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzworks committed May 8, 2012
1 parent ba1e192 commit 2047402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.mathjax']
extensions = []

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
2 changes: 1 addition & 1 deletion string/setrange.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SETRANGE

`SETRANGE`_ 命令会确保字符串足够长以便将 ``value`` 设置在指定的偏移量上,如果给定 ``key`` 原来储存的字符串长度比偏移量小(比如字符串只有 ``5`` 个字符长,但你设置的 ``offset`` 是 ``10`` ),那么原字符和偏移量之间的空白将用零比特(zerobytes, ``"\x00"`` )来填充。

注意你能使用的最大偏移量是 :math:`2^{29-1} (536870911)` ,因为 Redis 字符串的大小被限制在 512 兆(megabytes)以内。如果你需要使用比这更大的空间,你可以使用多个 ``key`` 。
注意你能使用的最大偏移量是 2^29-1(536870911) ,因为 Redis 字符串的大小被限制在 512 兆(megabytes)以内。如果你需要使用比这更大的空间,你可以使用多个 ``key`` 。

.. warning::
当生成一个很长的字符串时,Redis 需要分配内存空间,该操作有时候可能会造成服务器阻塞(block)。在2010年的Macbook Pro上,设置偏移量为 536870911(512MB 内存分配),耗费约 300 毫秒,
Expand Down

0 comments on commit 2047402

Please sign in to comment.