summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ensure token comparison is always comparing bytes objectslock-ownedAndy McCurdy2019-01-022-2/+11
|
* test to provde owned() fails with decode_responses=TrueAndy McCurdy2019-01-021-3/+15
|
* comments and pep8Andy McCurdy2019-01-021-3/+5
|
* Merge pull request #1112 from daveisfera/masterAndy McCurdy2019-01-022-2/+41
|\ | | | | Add support for specifying the token when acquiring a lock
| * Use owned() instead of locked(current=True)Dave Johansen2019-01-022-16/+22
| |
| * Updating test_locked() for use of current=TrueDave Johansen2019-01-021-1/+2
| |
| * Add current=False to Lock.locked() to maintain current behaviorDave Johansen2019-01-021-2/+8
| |
| * Allow specifying the value of the token when acquiring a lockDave Johansen2019-01-012-2/+16
| |
| * Use the token to verify that the lock is still lockedDave Johansen2019-01-012-1/+13
|/
* typoAndy McCurdy2018-12-291-1/+1
|
* 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
| | |