diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2010-03-05 17:15:28 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-03-05 17:15:28 -0800 |
commit | c83542e58593fd0ce6347f399b65763abfebcccb (patch) | |
tree | d7191bced5b8ad8395406f2f30370e0c6bb1f759 /redis/client.py | |
parent | 800720c7bd07c31511239df27d512e98d757e945 (diff) | |
download | redis-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.py | 2 |
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. |