summaryrefslogtreecommitdiff
path: root/redis/client.py
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | typo fixArctice2017-05-261-1/+1
| | | |
* | | | add an Encoder object responsible for encoding/decoding bytes and stringsAndy McCurdy2017-08-021-35/+21
|/ / / | | | | | | | | | this simplifies multiple places that needs to encode and decode values
* | | propery encode the script before getting the sha1 valueAndy McCurdy2017-07-311-1/+9
| | | | | | | | | | | | | | | | | | it's possible a Lua script contains unicode characters. use the client's encoding options to obtain the byte representation of the script.
* | | Merge branch 'pr/867'Andy McCurdy2017-07-311-16/+8
|\ \ \
| * | | make register_scripts use the single string form of the SCRIPT (EXISTS|LOAD) ↵Ben Greenberg2017-06-161-6/+3
| | | | | | | | | | | | | | | | commands so that they will be parsed the same way as in script_load and script_exists
| * | | Remove script_load_for_pipeline and directly add Script object to ↵Ben Greenberg2017-06-161-7/+3
| | | | | | | | | | | | | | | | BasePipeline.scripts
| * | | encode the SHA1 digest so that it matches the return type of script_load in ↵Ben Greenberg2017-06-151-1/+4
| | | | | | | | | | | | | | | | Python 3
| * | | Encode script string before hashing. Remove the "if not script.sha" block ↵Ben Greenberg2017-06-151-8/+3
| | | | | | | | | | | | | | | | from script_load_for_pipeline because its condition will not be true, and because scripts are loaded during execute()
| * | | Precalculate sha1 of the script on Script instantiationBen Greenberg2017-06-141-1/+2
| |/ /
* | | added get_encoding() to ConnectionPoolAndy McCurdy2017-07-311-7/+4
| | |
* | | Merge pull request #877 from twz915/patch-1Andy McCurdy2017-07-311-2/+2
|\ \ \ | | | | | | | | change the error order of geo point
| * | | change the error order of positionWeizhongTu2017-07-171-2/+2
| |/ / | | | | | | | | | | | | `GEOADD` needs `lon`, `lat` in order, not the reverse `GEOPOS` returns `longitude`, `latitude`
* | | Merge branch 'pr/879'Andy McCurdy2017-07-311-3/+10
|\ \ \
| * | | pep8Andy McCurdy2017-07-311-1/+4
| | | |
| * | | Implement HSTRLEN commandAleksandr Putilin2017-07-211-3/+7
| | | |
* | | | Merge pull request #871 from anisjonischkeit/add_touch_commandAndy McCurdy2017-07-311-0/+7
|\ \ \ \ | | | | | | | | | | added TOUCH command to StrictRedis
| * | | | fixed line too long pep8 errorAnis Jonischkeit2017-06-211-1/+2
| | | | |
| * | | | added touch to StrictRedisAnis Jonischkeit2017-06-211-0/+6
| | |/ / | |/| |
* | | | [bugfix] Fix srandmember(key, 0) returns 1 element bugAlex Wang2017-07-241-1/+1
| |/ / |/| |
* | | Fix #878Lorenzo2017-07-191-1/+1
| | |
* | | Improve if statement throwing KeyErrorLorenzo2017-07-191-1/+1
|/ / | | | | At line 210, if WITHSCORES is not specified within `execute_command()`, this line used to throw a `KeyError` because the relative key in `options` is not present. Solution: this PR add a check on the key 'withscores' before the key is accessed.
* | Merge pull request #848 from hqy/masterAndy McCurdy2017-05-081-2/+2
|\ \ | | | | | | fixed can't raise invalid expire time when set ex param is 0
| * | fix can't raise invalid expire time when set px param is 0huangqiyin2017-03-271-1/+1
| | |
| * | fixed can't raise invalid expire time when set ex param is 0huangqiyin2017-03-271-1/+1
| | |
* | | change order of lon-lat in geoadd help textAbraham Toriz Cruz2017-04-291-1/+1
|/ /
* | Add pattern support to PUBSUB CHANNELSAngusP2017-02-041-2/+2
| | | | | | Should have been added in #819
* | Add PUBSUB docs to READMEAngusP2017-01-241-1/+2
| |
* | Clarified docstrings for pubsub_numsub and pubsub_channelsAngusP2017-01-241-2/+2
| |
* | Implement PUBSUB * commandsAngusP2017-01-241-0/+23
| | | | | | | | | | PUBSUB CHANNELS, PUBSUB NUMSUB and PUBSUB NUMPAT are implemented as per https://redis.io/commands/pubsub and suggested in Issue #526. Implemented test class `TestPubSubPubSubSubcommands` to test added commands. Tested against python 3.4.2 and python 2.7.5
* | docs typoAndy McCurdy2016-11-081-1/+1
| |
* | Fixed typos in docsPramod Bisht2016-09-211-8/+8
| |
* | 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
| | |