summaryrefslogtreecommitdiff
path: root/redis
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Fixed issues regarding Python3pfreixes2016-06-141-4/+4
| | | | |
| * | | | Geo Commands, return Python native typesPau Freixes2016-06-141-4/+44
| | | | |
| * | | | Implemented support for the GEO commands for Redis 3.2.0pfreixes2016-05-161-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | | The following commands have been implemented GEOADD, GEODIST, GEOHASH, GEOPOS, GEORADIUS, GEORADIUSBYMEMBER.
* | | | | Merge pull request #751 from cjsimpson/token-cacheAndy McCurdy2016-06-142-29/+48
|\ \ \ \ \ | | | | | | | | | | | | Improve performance for Python 3.x
| * | | | | Cache Token objects to improve performance.Chris Simpson2016-06-122-29/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Token class now contains a cache of tokens, and each token stores its encoded value. In Python 3 this prevents encoding the Token commands (get, set, incr, etc...) repeatly. There is also a smaller performance improvement by creating fewer objects. A very basic benchmark script was also added.
* | | | | | pubsub: improve error reporting if caller forgets to subscribeGreg Ward2016-06-121-0/+4
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an easy mistake to make -- at least, I keep making it. It formerly resulted in a confusing crash, "AttributeError: 'NoneType' object has no attribute 'can_read'", from parse_response(). I have had to dig into the redis-py source code more than once to figure out what went wrong. With this patch, it still crashes, but with a clearer error that clarifies what the calling code forgot to do. Fixes issue #716.
* | | | | Retry `select` calls on `InterruptedError`Carlton Gibson2016-06-102-2/+12
| | | | | | | | | | | | | | | | | | | | Ref #738
* | | | | Merge pull request #743 from closeio/retry-recv-eintrAndy McCurdy2016-06-052-4/+62
|\ \ \ \ \ | | | | | | | | | | | | Automatically retry EINTR for Python < 3.5 to prevent duplicate command execution
| * | | | | Style fixes (2)Thomas Steinacher2016-05-241-2/+2
| | | | | |
| * | | | | Style fixesThomas Steinacher2016-05-241-2/+3
| | | | | |
| * | | | | For Python < 3.5, automatically retry EINTRThomas Steinacher2016-05-242-4/+61
| | | | | |
* | | | | | Check `int` also not only `long`Jeong YunWon2016-05-301-1/+1
|/ / / / / | | | | | | | | | | | | | | | PyPy can generate an `int` instance here.
* | | | | add daemon option to PubSubWorker so ctrl-c will workKeith Ainsworth2016-05-171-3/+4
|/ / / /
* | | | PEP8 fixesTim Savage2016-03-291-5/+11
| | | |
* | | | Extend ConnectionPool.to_url to parse querystring arguments to correct type.Tim Savage2016-03-291-3/+30
| | | | | | | | | | | | | | | | | | | | Previously if a value for socket_timeout was supplied as part fo the URL an error would be raised when a socket was created with an invalid type, this change fixes that by parsing `socket_timeout`, `socket_connect_timeout` to float values. In addition the boolean values `socket_keepalive` and `retry_on_timeout` are parsed to bool types taking into account the usage of True/False, Yes/No strings.
* | | | Merge pull request #685 from iandyh/masterAndy McCurdy2016-02-181-1/+49
|\ \ \ \ | | | | | | | | | | Redis cluster commands
| * | | | redis cluster commandsiandyh2015-12-011-1/+49
| |/ / /
* | | | Fix typo in comment.Greg Ward2015-12-091-2/+2
|/ / /
* | | FIX #651 try next Sentinel node on TimeoutErrorBo Lopker2015-11-271-3/+4
| | |
* | | fix getitem syntax for redis get when value is the empty stringJavier Candeira2015-11-251-1/+1
| | |
* | | raise TimeoutError if a socket.timeout is raised while connectingAndy McCurdy2015-11-091-0/+2
| | | | | | | | | | | | fixes #675
* | | 2.10.5 (incrementing the version to avoid a pypi issue)2.10.5Andy McCurdy2015-11-021-1/+1
| | |
* | | 2.10.42.10.4Andy McCurdy2015-11-021-1/+1
| | |
* | | socket errors on windows contain more than 2 arguments.Andy McCurdy2015-11-021-3/+4
| | | | | | | | | | | | fixes #641
* | | typoAndy McCurdy2015-11-021-2/+2
| | |
* | | ignore errors raised in SocketBuffer's close method. See #633.Andy McCurdy2015-11-021-2/+10
| | |
* | | max_connections should default to NoneAndy McCurdy2015-11-021-1/+1
| | |
* | | Merge pull request #665 from ohadpartuck/connection_pool_max_connectionsAndy McCurdy2015-11-021-2/+4
|\ \ \ | | | | | | | | adding max_connections option to StrictRedis Class
| * | | adding max_connections option to StrictRedis ClassOhad Perry2015-10-131-2/+4
| | | |
* | | | cleanupAndy McCurdy2015-11-021-7/+2
| | | |
* | | | decreased length of exception class retrieving lineth13f2015-10-261-1/+4
| | | |
* | | | parsing 'max number of clients reached' as ConnectionErrorth13f2015-10-261-2/+9
| | | |
* | | | -Add CHANGES message.Christian Bodt2015-10-201-3/+3
| | | | | | | | | | | | | | | | -Rename variables for coherence
* | | | -added zrevrangebylexChristian Bodt2015-10-201-0/+16
|/ / /
* | | satisfy pep8 updatesAndy McCurdy2015-09-281-13/+26
| | |
* | | removed the proactive check in HiredisParser for a line endingAndy McCurdy2015-09-281-9/+0
| | | | | | | | | | | | | | | it turns out just calling into hiredis to test this is faster than doing string compare in Python. fixes #615 and #650.
* | | Avoid needlessly making temporary lists to merge dict(s) togetherJoshua Harlow2015-09-271-1/+2
|/ /
* | support multiple keys for pfcount callChris Wilkes2015-05-221-3/+3
| |
* | fix: Connection.encode complains when value is an object having unicode ↵Eric Du2015-05-041-1/+1
| | | | | | | | characters in its printable representation
* | Fix pep8 errorsPaul Keene2015-02-101-17/+32
| |
* | Handle percent-encoded URLs in parsing codePaul Keene2015-02-092-9/+26
| |
* | Add WAIT command for Redis synchronous replicationeshizhan2015-01-151-0/+9
| | | | | | | | | | ref1: https://github.com/antirez/redis/blob/unstable/src/replication.c#L1783, at SYNCHRONOUS REPLICATION ref2: http://antirez.com/news/66 This command for Redis-3.0.0 and above now.
* | Merge branch 'master' of github.com:andymccurdy/redis-pyAndy McCurdy2015-01-022-3/+19
|\ \ | |/
| * Allow delay between watch errorsJoshua Harlow2014-12-081-0/+4
| | | | | | | | | | | | | | | | | | When a watcher error occurs (due to some key being watched being mutated) the current behavior is to immediately try again. To avoid the thundering herd problem a delay is nice to provide to avoid these situations by introducing a sleep period between these types of failures.
| * fix pep8Hendrik Muhs2014-12-041-1/+2
| |
| * UnicodeDecodeErrorfix unicode encode error when using pipeline in ↵Hendrik Muhs2014-12-042-3/+14
| | | | | | | | combination with msgpack and lua
* | better handling of the pub/sub workerthread's stop behaviorAndy McCurdy2015-01-021-20/+29
|/ | | | | properly unsubscribes and cleans up the connection now. also allows callbacks to call thread.stop() without errors.
* should also reinitialize with check_connectionAndy McCurdy2014-09-181-0/+1
|
* Passing is_master flag through on resetJonathan Frawley2014-09-181-0/+1
| | | | | | | - is_master is not passed through when recreating the ConnectionPool. - This was causing unexpected behaviour where we would specifiy that we wish to connect to the slave, but the master would be read from instead.
* docstringAndy McCurdy2014-08-151-3/+9
|