summaryrefslogtreecommitdiff
path: root/redis
Commit message (Collapse)AuthorAgeFilesLines
* redis-py 3.0.13.0.13.0Andy McCurdy2018-11-151-1/+1
|
* Update .locked() to indicate if lock has been acquired by any procesesAndy McCurdy2018-11-151-2/+4
| | | | | | This make just like threading.Lock objects do. Fixed #1007
* Fix broken asynchronous check in flushdb and flushallAndy McCurdy2018-11-151-2/+2
| | | | Fixes #1070
* Add missing UnixDomainSocketConnection._buffer_cutoffJyrki Muukkonen2018-11-151-0/+1
| | | | | | | | Without this using `unix_socket_path` will fail: AttributeError: 'UnixDomainSocketConnection' object has no attribute '_buffer_cutoff' Fixes #1067
* fix rst format issuesAndy McCurdy2018-11-151-2/+9
|
* redis-py 3.0.0Andy McCurdy2018-11-151-1/+1
|
* fix missing arg in exception message. thanks Keith AinsworthAndy McCurdy2018-11-141-2/+4
| | | | Fixes #559
* saner handling of decr/incr vs decrby/incrbyAndy McCurdy2018-11-141-8/+6
|
* Merge pull request #578 from derek-dchu/masterAndy McCurdy2018-11-141-0/+10
|\ | | | | add 'decrby' method
| * add 'decrby' methodDerek Hu2015-01-071-0/+10
| |
* | Merge branch 'master' into fix/no-interruptederror-on-python-2.7Andy McCurdy2018-11-146-477/+1031
|\ \
| * \ Merge pull request #925 from itamarhaber/sort_issueAndy McCurdy2018-11-141-1/+1
| |\ \ | | | | | | | | Fixes a KeyError in empty `options` dict at sort's return
| | * | Fixes a KeyError in empty `options` dict at sort's returnItamar Haber2017-11-131-1/+1
| | | | | | | | | | | | | | | | Fixes #924
| * | | Properly decode cluster info in callbacksAndy McCurdy2018-11-141-0/+2
| | | | | | | | | | | | | | | | Fixes #951
| * | | Merge branch 'master' of github.com:andymccurdy/redis-pyAndy McCurdy2018-11-142-11/+18
| |\ \ \
| | * \ \ Merge pull request #1017 from u2mejc/issue-1016Andy McCurdy2018-11-142-3/+3
| | |\ \ \ | | | | | | | | | | | | Enforce ssl_cert_reqs='required' by default
| | | * | | Enforce ssl_cert_reqs='required' by defaultJustin Clark2018-08-072-3/+3
| | | |/ /
| | * | | Merge pull request #1055 from tzickel/pipeperfAndy McCurdy2018-11-141-8/+15
| | |\ \ \ | | | | | | | | | | | | Improve performence of transactions / pipeline requests which involve large chunks of data.
| | | * | | Improve performence of transactions / pipeline requests which involve largetzickel2018-11-061-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | chunks of data.
| * | | | | add locked() method to lock objectAndy McCurdy2018-11-141-0/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lock.locked() returns a boolean indicating if the lock is acquired and valid. Thanks Alan Justino da Silva Fixes #1007
| * | | | EXISTS now accepts multiple keys. return the number of existing keysAndy McCurdy2018-11-141-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #1053 Fixes #635 Fixes #766
| * | | | add nx, xx, ch and incr options to ZADDAndy McCurdy2018-11-141-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #649 Fixes #954 Fixes #638 Fixes #721 Fixes #955
| * | | | update shutdown error to a DataErrorAndy McCurdy2018-11-141-1/+1
| | | | |
| * | | | Merge branch 'v3-breaking-changes'Andy McCurdy2018-11-144-309/+150
| |\ \ \ \
| | * | | | raise a LockError when the context manager fails to acquire a lockv3-breaking-changesAndy McCurdy2018-11-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #621 Fixes #927
| | * | | | only support LuaLock going forwardAndy McCurdy2018-11-142-103/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Everyone is using Redis 2.6 or greater, right? The Lua lock implementation is so much nicer and less buggy. Fixes #1031 Fixes #902 Fixes #793 Fixes #610
| | * | | | all commands should be able to accept bytes or strings for key namesAndy McCurdy2018-11-141-18/+6
| | | | | | | | | | | | | | | | | | | | | | | | fixes #965
| | * | | | list_or_args should always create a new listAndy McCurdy2018-11-141-1/+3
| | | | | |
| | * | | | use str() to encode int or long valuesAndy McCurdy2018-11-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on python2.7, repr() on a long produces '123L', which is clearly not what we want
| | * | | | raise DataError instead of RedisError for user input problemsAndy McCurdy2018-11-141-47/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should be backwards compatible since DataError is a subclass of RedisError.
| | * | | | only accept bytes, strings, ints, longs and floats as user inputAndy McCurdy2018-11-141-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All input sent to Redis is coerced into bytes. This includes key names and values. Prior to this change, redis-py made an effort to cooerce all input into strings by calling str() (Python 3) or unicode() (Python 2). While this works for a handful of types like ints, longs and floats, it fails for other types like bools ('True' or 'False'), None ('None') and many user defined types. Starting with redis-py version 3.0, sending input of any other type is considered an error an a DataError exception will be raised. Fixes #471 Fixes #472 Fixes #321 Fixes #190
| | * | | | fix order of zincrby args to match redis serverAndy McCurdy2018-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | fixes #571
| | * | | | remove legacy Redis classAndy McCurdy2018-11-132-103/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | redis-py maintained backwards compatibility by keeping the old "Redis" class around for quite some time. While no doubt a convenience for folks who relied on it, the presence of both Redis and StrictRedis causes a number of support issues and general confusion. With 3.0, we're breaking a few things to make redis-py better going forward. This change removes the old Redis class. We also renamed the StrictRedis class to Redis and aliased StrictRedis to Redis. For people that have been using StrictRedis, this should not change anything. You can continue doing things as you are. People still using the legacy Redis class will need to update the argument order for the SETEX, LREM and ZADD commands. Additionally, the return values for TTL and PTTL now return the integer values -1 when a key exists but has no expire time and -2 when a key does not exist. Previously these cases returned a None value in the Redis class.
| | * | | | force mapping to be a single dict object on MSET, MSETNX and ZADDAndy McCurdy2018-11-131-31/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously MSET, MSETNX and ZADD accepted multiple ways to specify the mapping of keys to values including via **kwargs. This turned out to be a poor choice. As Redis evolved and added additional options to the ZADD command, these options couldn't be specified in redis-py without possible element name conflictd. This fixes that going forward and makes the commands simpler.
| * | | | | Merge pull request #1042 from dwilliams-kenzan/masterAndy McCurdy2018-11-141-3/+15
| |\ \ \ \ \ | | |/ / / / | |/| | | | Adding a NOSAVE option to the SHUTDOWN command
| | * | | | Following the 80 column limit.Daniel Williams2018-11-141-3/+5
| | | | | |
| | * | | | Updating based on feedback from the pull request.Daniel Williams2018-11-141-5/+12
| | | | | |
| | * | | | Changed to a boolean argument.Daniel Williams2018-10-191-3/+3
| | | | | |
| | * | | | Adding an option to the SHUTDOWN command so NOSAVE can be passed in.Daniel Williams2018-10-191-2/+5
| | | |/ / | | |/| |
| * | | | Merge pull request #1064 from andymccurdy/migrateAndy McCurdy2018-11-131-0/+35
| |\ \ \ \ | | | | | | | | | | | | add migrate command
| | * | | | Token.get_token for literalsmigrateAndy McCurdy2018-11-121-4/+4
| | | | | |
| | * | | | add migrate commandAndy McCurdy2018-11-121-0/+35
| | | | | |
| * | | | | Merge pull request #1057 from RoeyPrat/roey-client_pauseAndy McCurdy2018-11-131-1/+24
| |\ \ \ \ \ | | | | | | | | | | | | | | CLIENT PAUSE and type argument in client_list
| | * | | | | pep8 fixesAndy McCurdy2018-11-131-3/+4
| | | | | | |
| | * | | | | Normalizes type to lowercase in client_list()Itamar Haber2018-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | I know @RoeyPrat has a lot on his plate atm so taking some liberty here.
| | * | | | | Implements type argument in client_listRoey Prat2018-11-071-4/+13
| | | | | | |
| | * | | | | Implements CLIENT PAUSERoey Prat2018-11-071-0/+13
| | | | | | |
| * | | | | | Merge pull request #1019 from krishan-carbon/patch-1Andy McCurdy2018-11-131-1/+15
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Allow pings in PubSub
| | * | | | | | .Krishan Patel2018-10-281-0/+1
| | | | | | | |
| | * | | | | | .Krishan Patel2018-10-281-2/+2
| | | | | | | |