summaryrefslogtreecommitdiff
path: root/redis/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* restore default Lock token storage, add toggle to make it thread-localwil paredes2014-06-061-0/+7
| | | | | * add thread_local=False parameter to Lock.__init__() and StrictRedis.lock() * use thread_local to decide whether to put token in thread-local storage
* Move import statement on top for PEP8 compliancy.Nicola Miotto2013-11-131-1/+3
|
* Add utility for pipelining within 'with' statement.sirnicolaz2013-08-171-0/+8
|
* encoding testsandy2013-06-061-2/+8
|
* Format code per pep8 guidelinesPaul Belanger2013-03-301-0/+1
| | | | | | A simple patch to enable pep8 in tox and format our code properly. Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
* Merge remote-tracking branch 'jparise/cls-from_url'andy2012-08-141-24/+2
|\ | | | | | | | | | | Conflicts: redis/client.py redis/utils.py
| * Improved `from_url()` support.Jon Parise2012-07-061-24/+2
| | | | | | | | | | | | | | | | | | | | | | | | `from_url()` is now implemented as a classmethod. The previous implementation always returned instances of the `Redis` class. This new approach lets us construct StrictRedis instances (or any other class derived from StrictRedis, including Redis). `utils.from_url()` has been preserved for backwards compatibility. Also, both versions of `from_url()` now pass along any additional keyword arguments to the class's initializer.
* | Fixed Python 3.2+ compatibilityAlex Grönholm2012-08-071-3/+2
| |
* | Cleaned up code for PEP 8 complianceAlex Grönholm2012-08-061-1/+2
|/
* assert url.schemeKenneth Reitz2012-05-181-1/+5
|
* redis.from_urlKenneth Reitz2012-05-181-0/+27