From c83542e58593fd0ce6347f399b65763abfebcccb Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Fri, 5 Mar 2010 17:15:28 -0800 Subject: the Redis class is now a thread local. This means you can safely pass it around between threads and connections will get swapped out correctly. --- redis/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'redis/client.py') diff --git a/redis/client.py b/redis/client.py index fe38909..a2897d9 100644 --- a/redis/client.py +++ b/redis/client.py @@ -143,7 +143,7 @@ def zset_score_pairs(response, **options): return zip(response[::2], map(float, response[1::2])) -class Redis(object): +class Redis(threading.local): """ Implementation of the Redis protocol. -- cgit v1.2.1