From c8936f7c713e333c21dd7a6d5ecfa582bcafb535 Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Thu, 15 Nov 2018 12:20:09 -0800 Subject: further clarification on mapping argument of MSET, MSETNX, and ZADD --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1