summaryrefslogtreecommitdiff
path: root/redis/utils.py
diff options
context:
space:
mode:
authorwil paredes <code@dystedium.com>2014-06-06 01:24:18 -0700
committerwil paredes <code@dystedium.com>2014-06-06 01:24:18 -0700
commitb010f4fc14c0d016b268b45d4950d88d39be9227 (patch)
treeea2fb3b8ba9ac91899a93cf13906b3ceabd1c318 /redis/utils.py
parent318bab78eba9e3a5cc7f93f3e865ecb2e05cba76 (diff)
downloadredis-py-b010f4fc14c0d016b268b45d4950d88d39be9227.tar.gz
restore default Lock token storage, add toggle to make it thread-local
* add thread_local=False parameter to Lock.__init__() and StrictRedis.lock() * use thread_local to decide whether to put token in thread-local storage
Diffstat (limited to 'redis/utils.py')
-rw-r--r--redis/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/redis/utils.py b/redis/utils.py
index e10d20f..0b0067e 100644
--- a/redis/utils.py
+++ b/redis/utils.py
@@ -24,3 +24,10 @@ def pipeline(redis_obj):
p = redis_obj.pipeline()
yield p
p.execute()
+
+
+class dummy(object):
+ """
+ Instances of this class can be used as an attribute container.
+ """
+ pass