summaryrefslogtreecommitdiff
path: root/redis/client.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | update shutdown error to a DataErrorAndy McCurdy2018-11-141-1/+1
| | |
* | | Merge branch 'v3-breaking-changes'Andy McCurdy2018-11-141-205/+79
|\ \ \
| * | | only support LuaLock going forwardAndy McCurdy2018-11-141-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | |
| * | | 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.
| * | | fix order of zincrby args to match redis serverAndy McCurdy2018-11-141-1/+1
| | | | | | | | | | | | | | | | fixes #571
| * | | remove legacy Redis classAndy McCurdy2018-11-131-97/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | | |
| * | | | | Added testKrishan Patel2018-08-131-1/+1
| | | | | |
| * | | | | Allow pings in PubSubKrishan Patel2018-08-131-0/+13
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | According to https://redis.io/topics/pubsub, “The commands that are allowed in the context of a subscribed client are SUBSCRIBE, PSUBSCRIBE, UNSUBSCRIBE, PUNSUBSCRIBE, PING and QUIT.” According to https://redis.io/commands/ping, “If the client is subscribed to a channel or a pattern, it will instead return a multi-bulk with a "pong" in the first position and an empty bulk in the second position, unless an argument is provided in which case it returns a copy of the argument.”
* | | | | Adds the memory_usage and memory_purge commandsItamar Haber2018-11-091-0/+20
| |_|/ / |/| | | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
* | | | Renames sync to asynchronousItamar Haber2018-11-081-8/+8
| | | | | | | | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
* | | | Adds `sync` flag to flushdb and flushallItamar Haber2018-11-081-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | Uses sync as async is a keyword. Defaults to Redis pre v4 behavior. Signed-off-by: Itamar Haber <itamar@redislabs.com>
* | | | added better overflow control and lifecycle mgmt to bitfieldsAndy McCurdy2018-11-071-14/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - bitfields now accept a `default_overflow` argument that sets the default overflow behavior for incrby operations - exposed an overflow() method that sets the overflow behavior for future incrby operations. this can be used in place of the overfly argument to incrby if someone prefers - clean up bitfield instance upon execution, resetting the overflow behavior back to the default provided and clearing the list of operations
* | | | support for the bitfield command thanks to Charles LeiferAndy McCurdy2018-11-061-0/+84
| |/ / |/| |
* | | Merge branch 'pr/916' into drop26Andy McCurdy2018-11-061-24/+20
|\ \ \
| * | | Use timedelta.total_seconds(); available since Python 2.7Jon Dufresne2018-11-031-10/+7
| | | |
| * | | Use unicode literals throughout projectJon Dufresne2018-11-031-7/+7
| | | | | | | | | | | | | | | | Remove workaround for handling unicode with older Pythons.
| * | | Prefer dict comprehension over dict(<generator>)Jon Dufresne2018-11-031-1/+1
| | | |
| * | | Pass generators to dict() instead of coercing to a listJon Dufresne2018-11-031-5/+5
| | | |
| * | | Use set literals instead of set([...])Jon Dufresne2018-11-031-1/+1
| | | |
| * | | Remove from __future__ import with_statementJon Dufresne2018-11-031-1/+0
| | | | | | | | | | | | | | | | All supported Python versions support the with statement.
* | | | add response callback for the UNLINK commandAndy McCurdy2018-11-061-5/+5
| | | |
* | | | Merge pull request #933 from yozel/masterAndy McCurdy2018-11-061-0/+4
|\ \ \ \ | | | | | | | | | | Add support for UNLINK command
| * | | | Add support for UNLINK commandYasin Ozel2017-12-011-0/+4
| | |/ / | |/| |
* | | | Merge pull request #1036 from itamarhaber/v5-client-subcommandsAndy McCurdy2018-11-051-0/+18
|\ \ \ \ | | | | | | | | | | Adds v5 new client subcommands
| * \ \ \ Merge branch 'master' into v5-client-subcommandsAndy McCurdy2018-11-051-49/+529
| |\ \ \ \
| * | | | | Remove reason arg from client_unblock. Use boolean 'error' arg instead.Roey Prat2018-11-041-8/+7
| | | | | |
| * | | | | Adds unblock reason supportItamar Haber2018-10-051-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
| * | | | | Adds CLIENT UNBLOCKItamar Haber2018-10-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
| * | | | | Adds support for CLIENT IDItamar Haber2018-10-051-0/+5
| | |/ / / | |/| | | | | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
* | | | | wrap xgroup_create's MKSTREAM option in a Token.get_token()Andy McCurdy2018-11-051-1/+1
| |/ / / |/| | |
* | | | rename empty_errow -> empty_response as the value is the actual responseerror_defaultsAndy McCurdy2018-11-051-7/+7
| | | |