summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2020-02-24 10:57:56 -0800
committerAndy McCurdy <andy@andymccurdy.com>2020-02-24 10:57:56 -0800
commitfc88507aef921450dd95ada7181f1c316e01ee8b (patch)
treec04d010139be9449e2c06924b87a9745ecf815f4
parentb2989759d9c4c73d28251b7976d0823770323e0c (diff)
downloadredis-py-fc88507aef921450dd95ada7181f1c316e01ee8b.tar.gz
Add a documentation note about calling `pipe.multi()` prior to write commands
Fixes #1279
-rw-r--r--README.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 9a658cc..e896858 100644
--- a/README.rst
+++ b/README.rst
@@ -505,6 +505,9 @@ which is much easier to read:
>>> r.transaction(client_side_incr, 'OUR-SEQUENCE-KEY')
[True]
+Be sure to call `pipe.multi()` in the callable passed to `Redis.transaction`
+prior to any write commands.
+
Publish / Subscribe
^^^^^^^^^^^^^^^^^^^