From b010f4fc14c0d016b268b45d4950d88d39be9227 Mon Sep 17 00:00:00 2001 From: wil paredes Date: Fri, 6 Jun 2014 01:24:18 -0700 Subject: 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 --- redis/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'redis/utils.py') 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 -- cgit v1.2.1