summaryrefslogtreecommitdiff
path: root/redis/client.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |
* | | hook for graceful command failure, even in pipelinesAndy McCurdy2018-11-041-9/+22
| | | | | | | | | | | | allow commands that expect 1 or more keys to fail gracefully when 0 keys are provided
* | | Merge pull request #1051 from itamarhaber/swapdbAndy McCurdy2018-11-031-1/+5
|\ \ \ | |_|/ |/| | Adds SWAPDB
| * | Adds SWAPDBItamar Haber2018-11-031-1/+5
| | | | | | | | | | | | | | | | | | No tests were added - consistent with basic operations such as FLUSHDB Signed-off-by: Itamar Haber <itamar@redislabs.com>
* | | Merge branch 'master' into documents-strictredis-rediss-supportAndy McCurdy2018-11-021-35/+490
|\ \ \
| * \ \ Merge pull request #1018 from mzalimeni/info-support-colon-keysAndy McCurdy2018-11-021-1/+2
| |\ \ \ | | | | | | | | | | Fix parsing for INFO keys that include ':'
| | * | | Fix parsing for INFO keys that include ':'Michael Zalimeni2018-08-081-1/+2
| | | |/ | | |/|
| * | | Merge pull request #1035 from qingping209/handle-geodist-none-rspAndy McCurdy2018-11-021-2/+2
| |\ \ \ | | |_|/ | |/| | handle the case where geodist return -1
| | * | geodist may return none or float, response handler callback shouldqingping2092018-09-301-2/+2
| | |/ | | | | | | | | | be float_or_none
| * | Merge branch 'master' of github.com:andymccurdy/redis-pyAndy McCurdy2018-11-011-2/+2
| |\ \
| | * | Prefer https:// for URLs when availableJon Dufresne2018-11-011-1/+1
| | | |
| | * | Merge pull request #1039 from jeffwidman/patch-2Andy McCurdy2018-11-011-1/+1
| | |\ \ | | | | | | | | | | "while 1" --> "while True"
| | | * | "while 1" --> "while True"Jeff Widman2018-10-111-1/+1
| | | |/ | | | | | | | | | | | | This is python, not C
| * | | added MKSTREAM option to xgroup_createAndy McCurdy2018-11-011-2/+5
| |/ /
| * | Merge pull request #1037 from itamarhaber/zpopAndy McCurdy2018-11-011-1/+65
| |\ \ | | | | | | | | Adds support for ZPOPMAX, ZPOPMIN and their respective blocking variants
| | * | PEP8's itItamar Haber2018-10-051-7/+14
| | | | | | | | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
| | * | Converts score from string to floatItamar Haber2018-10-051-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
| | * | Adds BZPOPMAX and BZPOPMINItamar Haber2018-10-051-1/+41
| | | | | | | | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
| | * | Adds ZPOPMAX and ZPOPMINItamar Haber2018-10-051-1/+17
| | |/ | | | | | | | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
| * | Merge pull request #1044 from faheel/fix-docs-formattingAndy McCurdy2018-11-011-2/+2
| |\ \ | | | | | | | | Improve formatting of docs
| | * | Add missing spaceFaheel Ahmad2018-11-011-2/+2
| | | |
| * | | guarentee consistency by mapping the keys/values with one callAndy McCurdy2018-10-311-2/+3
| |/ /
| * | explicit parsing of xclaim response with justid=TrueAndy McCurdy2018-10-311-3/+5
| | |
| * | rename start/finish and start/end args to min/max on all stream commandsAndy McCurdy2018-10-311-11/+11
| | | | | | | | | | | | | | | this is consistent with the rest of the library and is clearer terminology to the end user
| * | refactor a bunch of the tests.Andy McCurdy2018-10-311-59/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | - split out tests for each client function - alphabetize - make sure response callbacks return system info dicts with native string keys rather than byte strings. - make sure empty versions of commands that typically return a list return an empty list when streams or messages don't exist
| * | alphabetize part 2Andy McCurdy2018-10-311-31/+31
| | |
| * | fix commentAndy McCurdy2018-10-311-2/+1
| | |
| * | reorganize stream testsAndy McCurdy2018-10-311-4/+4
| | |
| * | alphabetize stream functionsAndy McCurdy2018-10-311-180/+180
| | |