summaryrefslogtreecommitdiff
path: root/redis/client.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #645 from cvrebert/redis-urlAndy McCurdy2016-09-061-1/+4
|\ \ | | | | | | Link to redis:// & rediss:// scheme IANA registrations in docs
| * | Link to redis:// & rediss:// scheme IANA registrations in docsChris Rebert2015-08-131-1/+4
| | |
* | | Fix transposition of GEORADIUS argumentsAlex DeBrie2016-07-101-2/+2
| | |
* | | Merge pull request #698 from mumumu/add_replace_option_to_restore_commandAndy McCurdy2016-06-151-2/+5
|\ \ \ | | | | | | | | implemented REPLACE modifier of restore command
| * | | - added replace option to restore commandYoshinari Takaoka2015-12-281-2/+5
| | | |
* | | | Merge pull request #747 from pfreixes/geo_commandsAndy McCurdy2016-06-141-3/+172
|\ \ \ \ | | | | | | | | | | Implemented support for the GEO commands for Redis 3.2.0
| * | | | 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-141-26/+27
|\ \ \ \ \ | | | | | | | | | | | | Improve performance for Python 3.x
| * | | | | Cache Token objects to improve performance.Chris Simpson2016-06-121-26/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | 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
|/ / / /
* | | | 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 getitem syntax for redis get when value is the empty stringJavier Candeira2015-11-251-1/+1
| | |
* | | 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
| | | |
* | | | -Add CHANGES message.Christian Bodt2015-10-201-3/+3
| | | | | | | | | | | | | | | | -Rename variables for coherence
* | | | -added zrevrangebylexChristian Bodt2015-10-201-0/+16
|/ / /
* | | 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
| |
* | 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-021-3/+8
|\
| * 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-041-3/+3
| | | | | | | | 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.
* docstringAndy McCurdy2014-08-151-3/+9
|
* add optional "timeout" parameter to pubsub.can_readAndy Isaacson2014-08-121-4/+4
|
* Merge pull request #501 from jettify/masterAndy McCurdy2014-07-061-4/+24
|\ | | | | Added bitpos command
| * bitpos command implementationNickolai Novik2014-06-211-4/+24
| |
* | Consistent option names for encoding and encoding_errors. Fixes #510Andy McCurdy2014-07-031-4/+14
|/
* pack multiple commands in a pipeline into larger strings.Andy McCurdy2014-06-161-7/+3
| | | | fixes #495
* more info on thread local storageAndy McCurdy2014-06-161-5/+25
|
* restore default Lock token storage, add toggle to make it thread-localwil paredes2014-06-061-2/+8
| | | | | * add thread_local=False parameter to Lock.__init__() and StrictRedis.lock() * use thread_local to decide whether to put token in thread-local storage
* add a lock implementation using Lua scripts.Andy McCurdy2014-06-011-4/+18
|
* updated Lock class:Andy McCurdy2014-06-011-2/+8
| | | | | * now uses unique string tokens to claim lock ownership * added extend() method to extend the timeout on an already acquired lock
* move Lock class to it's own moduleAndy McCurdy2014-05-311-92/+1
|
* Don't retry commands that fail due to a socket.timeout by default.Andy McCurdy2014-05-271-7/+17
| | | | | | | | | | | | | | | | | | | | Users now have the ability about how socket.timeout errors are handled. Previously socket.timeout errors were handled just like any other socket error in that the command would be retried once. This createed a potential race condition when the client sends a command to a busy Redis server that can't reply faster than the client's `socket_timeout` option. In this case, the server will still eventually process the command. There's now a `retry_on_timeout` option that's set to False by default. If `retry_on_timeout` is False, any socket.timeout error will raise a TimeoutError exception. If `retry_on_timeout` is set to True, the client will retry executing the command once just like other socket.error exceptions. TODO: Write better tests for this code. TODO: Much of this logic could/should be moved to the ConnectionPool or Connection objects. Fixes #261
* consistent naming, #446Andy McCurdy2014-05-141-4/+4
|
* added socket_connect_timeout and socket_keepalive options. fixed #353Andy McCurdy2014-05-131-1/+7
|
* added the ablity to pass ssl options to client classes. #446Andy McCurdy2014-05-131-2/+14
|
* Merge branch 'pr/446'Andy McCurdy2014-05-121-0/+0
|\ | | | | | | | | | | Conflicts: redis/client.py redis/connection.py
| * fixing coding styleOran Agra2014-03-251-2/+2
| | | | | | | | E127 continuation line over-indented for visual indent
| * fix line too long (coding style test)Oran Agra2014-03-231-1/+3
| |
| * add SSL supportOran Agra2014-03-221-3/+20
| |