diff options
author | Jake Barnwell <2320567+jakebarnwell@users.noreply.github.com> | 2022-03-01 05:22:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 12:22:49 +0200 |
commit | 61490045fc1a3d34260b293821a57424436af29e (patch) | |
tree | 410f3a694d76f987d5e9b6fe240b750a0b01638a /redis/client.py | |
parent | 87764e7eed05d19519110d06c66a4c00ea59bcac (diff) | |
download | redis-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-x | redis/client.py | 5 |
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 |