提交 c8936f7c 编写于 作者: A Andy McCurdy

further clarification on mapping argument of MSET, MSETNX, and ZADD

上级 2239c696
......@@ -110,7 +110,9 @@ styles caused issues when Redis introduced optional flags to ZADD. Relying on
the argument names in the method signature.
To resolve this, redis-py 3.0 has changed these three commands to all accept
a single positional argument named mapping that is expected to be a dict.
a single positional argument named mapping that is expected to be a dict. For
MSET and MSETNX, the dict is a mapping of key-names -> values. For ZADD, the
dict is a mapping of element-names -> score.
MSET, MSETNX and ZADD now look like:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册