summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-15 12:20:09 -0800
committerAndy McCurdy <andy@andymccurdy.com>2018-11-15 12:20:09 -0800
commitc8936f7c713e333c21dd7a6d5ecfa582bcafb535 (patch)
tree0133204cddd07f7f623666fce392620da9ea89dd
parent2239c6962ad5f86395c142ce8f352650b11cabb5 (diff)
downloadredis-py-c8936f7c713e333c21dd7a6d5ecfa582bcafb535.tar.gz
further clarification on mapping argument of MSET, MSETNX, and ZADD
-rw-r--r--README.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 7cae91d..9d23592 100644
--- a/README.rst
+++ b/README.rst
@@ -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: