summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorJake Barnwell <2320567+jakebarnwell@users.noreply.github.com>2022-03-01 05:22:49 -0500
committerGitHub <noreply@github.com>2022-03-01 12:22:49 +0200
commit61490045fc1a3d34260b293821a57424436af29e (patch)
tree410f3a694d76f987d5e9b6fe240b750a0b01638a /redis/client.py
parent87764e7eed05d19519110d06c66a4c00ea59bcac (diff)
downloadredis-py-61490045fc1a3d34260b293821a57424436af29e.tar.gz
Implement locks for RedisCluster (#2013)
* Add support for .lock() for RedisCluster * Update changelog with lua scripting and lock() changes * Also update asyncio client .lock() doc * Add Python 3.6 back to hash verify CI (#2008) * Renaming chore as maintenance (#2015) * Add AsyncFunctionCommands (#2009) * Also update asyncio client .lock() doc Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index 0eade79..b12ad57 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -1082,7 +1082,10 @@ class Redis(AbstractRedis, RedisModuleCommands, CoreCommands, SentinelCommands):
continue trying forever. ``blocking_timeout`` can be specified as a
float or integer, both representing the number of seconds to wait.
- ``lock_class`` forces the specified lock implementation.
+ ``lock_class`` forces the specified lock implementation. Note that as
+ of redis-py 3.0, the only lock class we implement is ``Lock`` (which is
+ a Lua-based lock). So, it's unlikely you'll need this parameter, unless
+ you have created your own custom lock class.
``thread_local`` indicates whether the lock token is placed in
thread-local storage. By default, the token is placed in thread local