summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2010-03-05 17:15:28 -0800
committerAndy McCurdy <andy@andymccurdy.com>2010-03-05 17:15:28 -0800
commitc83542e58593fd0ce6347f399b65763abfebcccb (patch)
treed7191bced5b8ad8395406f2f30370e0c6bb1f759 /redis/client.py
parent800720c7bd07c31511239df27d512e98d757e945 (diff)
downloadredis-py-c83542e58593fd0ce6347f399b65763abfebcccb.tar.gz
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.
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py2
1 files changed, 1 insertions, 1 deletions
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.