summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | changelogAndy McCurdy2018-12-281-0/+3
| | | | |
* | | | | Merge pull request #1014 from ikalnytskyi/lock-resetAndy McCurdy2018-12-282-0/+64
|\ \ \ \ \ | | | | | | | | | | | | Add `.reacquire()` method to Lock
| * | | | | Add `.reacquire()` method to LockIhor Kalnytskyi2018-12-282-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `Lock` class provides a method called `.extend()` to manage a TTL of the acquired lock. However, the method allows only to extend a timeout of existing lock by N seconds, there's no way you can reset a TTL to the timeout value you passed to this lock. There could be multiple use cases for such behaviour. For instance, one may want to use a lock to implement active/passive behaviour where only one process owns a lock and resets its TTL all over again until it dies. This commit adds a new method called `.reacquire()` to reset a TTL of the acquired lock back to the passed timeout value.
* | | | | | Merge pull request #1111 from jdufresne/bytesAndy McCurdy2018-12-283-4/+2
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Remove unnecessary compat shim for 'bytes'
| * | | | | Remove unnecessary compat shim for 'bytes'Jon Dufresne2018-12-283-4/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Both Python 2.7 & Python 3 have the types bytes. On Python 2.7, it is an alias for the type str, same as what was previously defined in _compat.py.
* | | | | Encode Stream message names within XREAD and XREADGROUP responses correctlyAndy McCurdy2018-12-273-7/+9
| | | | | | | | | | | | | | | | | | | | Stream message now respect the decode_responses flag.
* | | | | changelogAndy McCurdy2018-12-271-0/+3
| | | | |
* | | | | fixed travis configAndy McCurdy2018-12-271-1/+1
| | | | |
* | | | | use redis 5.0.3 on travis-ciAndy McCurdy2018-12-271-1/+1
| | | | |
* | | | | XPENDING range queries no longer allow COUNT to be infiniteAndy McCurdy2018-12-271-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redis 5.0.1 and beyond require that COUNT be specified as a positive integer. Since we can't guess the maximum possible value (UULONG_MAX can vary based on server architecture), force min/max/count to be required arguments
* | | | | redis >= 5.0.1 changed behavior of XREADGROUP stream IDAndy McCurdy2018-12-271-38/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redis versions 5.0.1 require messages to be read with the special ID '>' when using XREADGROUP Fixes #1073
* | | | | ZADD correctly returns None in certain edge cases when incr=TrueAndy McCurdy2018-12-273-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When incr=True and xx=True and an element is specified that doesn't exist the Redis server returns None. redis-py now does this as well. Fixes #1084
* | | | | Merge pull request #1110 from jdufresne/disutilsAndy McCurdy2018-12-271-19/+12
|\ \ \ \ \ | | | | | | | | | | | | Remove outdated distutils fallback
| * | | | | Remove outdated distutils fallbackJon Dufresne2018-12-201-19/+12
|/ / / / / | | | | | | | | | | | | | | | | | | | | Modern Python environments have setuptools or pip installed. The distutils fallback is unnecessary.
* | | | | Merge pull request #1077 from oranagra/fix_info_parsingAndy McCurdy2018-12-181-2/+6
|\ \ \ \ \ | | | | | | | | | | | | Re-fix the recently broken INFO parsing, see #1018
| * | | | | Re-fix the recently broken INFO parsing, see #1018Oran Agra2018-11-181-2/+6
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | The value part of the info line may contains : in many cases, most importantly an IPv6 slave address, may cause the parser to crash.
* | | | | changelogAndy McCurdy2018-12-171-2/+7
| | | | |
* | | | | Merge pull request #1098 from theodesp/client-kill-filterAndy McCurdy2018-12-173-1/+104
|\ \ \ \ \ | | | | | | | | | | | | Add client kill with filter
| * | | | | pep8 fixAndy McCurdy2018-12-171-2/+4
| | | | | |
| * | | | | fix missing parensAndy McCurdy2018-12-171-2/+2
| | | | | |
| * | | | | small cleanup of client_kill_filterAndy McCurdy2018-12-171-23/+21
| | | | | | | | | | | | | | | | | | | | | | | | changed skipme to a bool use a list to accumulate filter options
| * | | | | Added test case for filterTheo Despoudis2018-12-081-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
| * | | | | Code review fixesTheo Despoudis2018-12-063-58/+61
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
| * | | | | Fixes codestyle issuesTheo Despoudis2018-12-041-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
| * | | | | Simplified key, value handling inside for-range loopTheo Despoudis2018-12-041-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
| * | | | | Removed ambiguous argument handlingTheo Despoudis2018-12-041-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
| * | | | | Add client kill with filterTheo Despoudis2018-12-043-1/+81
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
* | | | | | Merge pull request #1105 from marc1n/masterAndy McCurdy2018-12-172-14/+75
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix #764 - sub-unsub-resub caused PubSub() to forget the channel
| * | | | | | Fix code styleMarcin Raczyński2018-12-171-2/+4
| | | | | | |
| * | | | | | Fix #764 - sub-unsub-resub caused PubSub() to forget the channelMarcin Raczyński2018-12-172-14/+73
|/ / / / / /
* | | | | | Merge pull request #1101 from jdufresne/extrasAndy McCurdy2018-12-061-2/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | Use tox "extras" option to install package extras
| * | | | | | Use tox "extras" option to install package extrasJon Dufresne2018-12-061-2/+3
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For details, see: https://tox.readthedocs.io/en/latest/config.html#conf-extras Removes the need to duplicate the version string in tox.ini. Allow setup.py to be the single source of truth.
* | | | | | Merge pull request #1100 from jdufresne/py37Andy McCurdy2018-12-063-12/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | Use 'dist: xenial' in Travis to simplify configuration
| * | | | | | Use 'dist: xenial' in Travis to simplify configurationJon Dufresne2018-12-063-12/+6
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows using Python version 3.7 without sudo declarations. Travis officially added support for Xenial on 2018-11-08. https://blog.travis-ci.com/2018-11-08-xenial-release Add Python 3.7 to tox.ini and setup.py as well.
* | | | | | Merge pull request #1097 from theodesp/github-templatesAndy McCurdy2018-12-042-0/+23
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | Add github templates.
| * | | | | Add github templates.Theo Despoudis2018-12-042-0/+23
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ISSUE_TEMPLATE for creating issues PULL_REQUEST_TEMPLATE for creating PRs Signed-off-by: Theo Despoudis <thdespou@hotmail.com>
* | | | | rename new LockErrorNotOwned to LockNotOwnedErrorAndy McCurdy2018-12-034-8/+15
| | | | |
* | | | | Merge pull request #1095 from harlowja/lock-error-not-ownedAndy McCurdy2018-12-033-7/+14
|\ \ \ \ \ | | | | | | | | | | | | Extend lock error for not owned special case
| * | | | | Extend lock error for not owned special caseJoshua Harlow2018-12-033-7/+14
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the locking routines, it is useful to be able to distingush a generic lock error from a one that is related to the lock not being owned anymore (without doing string checks); this allows say a lock extension thread to attempt to re-acquire the lock in this case (vs just dying).
* | | | | moved ssl_cert_reqs note to backwards incompatible section of changelogAndy McCurdy2018-11-291-3/+3
| | | | |
* | | | | Merge branch 'master' of github.com:andymccurdy/redis-pyAndy McCurdy2018-11-292-16/+17
|\ \ \ \ \ | |/ / / /
| * | | | Merge pull request #1083 from bbayles/georad-decodeAndy McCurdy2018-11-212-16/+17
| |\ \ \ \ | | | | | | | | | | | | Don't destroy data in GEORADIUS commands
| | * | | | Remove decoding from georadiusBo Bayles2018-11-212-24/+13
| | | | | |
| | * | | | Don't destroy data in GEORADIUS commandsBo Bayles2018-11-202-6/+18
| | |/ / /
* | | | | Backwards Incompatible note about ssl_cert_reqs changeAndy McCurdy2018-11-291-0/+17
|/ / / / | | | | | | | | | | | | See #1017
* | | | redis-py 3.0.13.0.13.0Andy McCurdy2018-11-152-1/+9
|/ / /
* | | further clarification on mapping argument of MSET, MSETNX, and ZADDAndy McCurdy2018-11-151-1/+3
| | |
* | | 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
* | | Merge pull request #1069 from jvtm/unix-socket-self-cutoffAndy McCurdy2018-11-151-0/+1
|\ \ \ | | | | | | | | Add missing UnixDomainSocketConnection._buffer_cutoff