diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2018-11-15 12:20:09 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2018-11-15 12:20:09 -0800 |
commit | c8936f7c713e333c21dd7a6d5ecfa582bcafb535 (patch) | |
tree | 0133204cddd07f7f623666fce392620da9ea89dd | |
parent | 2239c6962ad5f86395c142ce8f352650b11cabb5 (diff) | |
download | redis-py-c8936f7c713e333c21dd7a6d5ecfa582bcafb535.tar.gz |
further clarification on mapping argument of MSET, MSETNX, and ZADD
-rw-r--r-- | README.rst | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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: |