summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into SupportJSON.MSETSupportJSON.MSETshacharPash2023-05-160-0/+0
|\
| * support JSON.MERGE Command (#2761)HEADmastershacharPash2023-05-164-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * support JSON.MERGE Command * linters * try with abc instead person * change @skip_ifmodversion_lt to latest ReJSON 2.4.7 * change version * fix test * linters * add async test
* | delete the line from integrationshacharPash2023-05-161-1/+0
| |
* | reminder do delete the integration changesshacharPash2023-05-151-1/+1
| |
* | add async testshacharPash2023-05-151-0/+9
| |
* | lintersshacharPash2023-05-151-2/+3
| |
* | trying to run CIshacharPash2023-05-151-0/+1
| |
* | Support JSON.MSET commandshacharPash2023-05-153-0/+29
| |
* | add async testshacharPash2023-05-151-0/+35
| |
* | lintersshacharPash2023-05-151-7/+19
| |
* | fix testshacharPash2023-05-151-41/+10
| |
* | change versionshacharPash2023-05-151-1/+1
| |
* | change @skip_ifmodversion_lt to latest ReJSON 2.4.7shacharPash2023-05-151-1/+1
| |
* | try with abc instead personshacharPash2023-05-151-18/+39
| |
* | lintersAddJsonCommandsshacharPash2023-05-141-5/+20
| |
* | support JSON.MERGE CommandshacharPash2023-05-143-0/+39
|/
* Kristjan/issue #2754: Add missing argument to ↵Kristján Valur Jónsson2023-05-104-3/+13
| | | | | | | | | | | | SentinelManagedConnection.read_response() (#2756) * Increase timeout for a test which would hang completely if failing. Timeouts in virtualized CI backends can occasionally fail if too short. * add "disconnect_on_error" argument to SentinelManagedConnection * update Changes * lint
* Version 4.5.5 (#2753)v4.5.5dvora-h2023-05-081-1/+1
|
* Fix `xadd` allow non negative maxlen (#2739)Seongchuel Ahn2023-05-082-2/+3
| | | | | | | | | * Fix xadd allow non negative maxlen * Update change log --------- Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* fix create single_connection_client from url (#2752)dvora-h2023-05-084-2/+24
|
* Add client no-touch (#2745)Seongchuel Ahn2023-05-083-0/+27
| | | | | | | | | | | | | | | | | | | | | | | * Add client no-touch * Update redis/commands/core.py Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> * Update test_commands.py Improve test_client_no_touch * Update test_commands.py Add async version test case * Chore remove whitespace Oops --------- Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Optionally disable disconnects in read_response (#2695)Kristján Valur Jónsson2023-05-0811-110/+149
| | | | | | | | | | | | | * Add regression tests and fixes for issue #1128 * Fix tests for resumable read_response to use "disconnect_on_error" * undo prevision fix attempts in async client and cluster * re-enable cluster test * Suggestions from code review * Add CHANGES
* fix parse_slowlog_get (#2732)dvora-h2023-05-082-0/+6
|
* clean warnings (#2731)dvora-h2023-05-081-1/+1
|
* Add support for cluster myshardid (#2704)Anurag Bandyopadhyay2023-05-084-1/+30
| | | | | | | | | | | | | | | | | | | * feat: adding support for cluster myshardid * lint fix * fix: comment fix and async test * fix: adding version check * fix lint: * linters --------- Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Update redismodules.rst (#2747)Cristian Matache2023-05-081-1/+1
| | | Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Add RedisCluster.remap_host_port, Update tests for CWE 404 (#2706)Kristján Valur Jónsson2023-05-077-155/+227
| | | | | | | | | | | | | | | | | | | | | | * Use provided redis address. Bind to IPv4 * Add missing "await" and perform the correct test for pipe eimpty * Wait for a send event, rather than rely on sleep time. Excpect cancel errors. * set delay to 0 except for operation we want to cancel This speeds up the unit tests considerably by eliminating unnecessary delay. * Release resources in test * Fix cluster test to use address_remap and multiple proxies. * Use context manager to manage DelayProxy * Mark failing pipeline tests * lint * Use a common "master_host" test fixture
* pinning urllib3 to fix CI (#2748)Chayim2023-05-071-0/+1
|
* Updated AWS Elasticache IAM Connection Example (#2702)Nick Gerow2023-05-031-12/+44
| | | Co-authored-by: Nick Gerow <nick.gerow@enlightedinc.com>
* nermina changes from NRedisStack (#2736)shacharPash2023-05-021-10/+10
|
* add "address_remap" feature to RedisCluster (#2726)Kristján Valur Jónsson2023-05-025-2/+291
| | | | | | | | | | | | | | | * add cluster "host_port_remap" feature for asyncio.RedisCluster * Add a unittest for asyncio.RedisCluster * Add host_port_remap to _sync_ RedisCluster * add synchronous tests * rename arg to `address_remap` and take and return an address tuple. * Add class documentation * Add CHANGES
* Fix potential race condition during disconnection (#2719)Markus Gerstel2023-05-011-4/+6
| | | | | | | | | | | | | | | When the disconnect() function is called twice in parallel it is possible that one thread deletes the self._sock reference, while the other thread will attempt to call .close() on it, leading to an AttributeError. This situation can routinely be encountered by closing the connection in a PubSubWorkerThread error handler in a blocking thread (ie. with sleep_time==None), and then calling .close() on the PubSub object. The main thread will then run into the disconnect() function, and the listener thread is woken up by the closure and will race into the disconnect() function, too. This can be fixed easily by copying the object reference before doing the None-check, similar to what we do in the redis.client.close() function.
* Fix `ClusterCommandProtocol` not itself being marked as a protocol (#2729)Avasam2023-05-012-1/+2
| | | | | * Fix `ClusterCommandProtocol` not itself being marked as a protocol * Update CHANGES
* Add WITHSCORES to ZREVRANK Command (#2725)shacharPash2023-04-303-2/+29
| | | | | | | | | * add withscores to zrevrank * change 0 -> 2 * fix errors * split test
* return response in case of KeyError (#2628)shacharPash2023-04-302-4/+13
| | | | | | | | | * return response in case of KeyError * fix code linters error * fix linters 2 * fix linters 3
* Improve error output for master discovery (#2720)Marc Schöchlin2023-04-273-4/+17
| | | | | | | Make MasterNotFoundError exception more precise in the case of ConnectionError and TimeoutError to help the user to identify configuration errors Co-authored-by: Marc Schöchlin <marc.schoechlin@flipapp.de>
* Fix topk list example. (#2724)AYMEN Mohammed2023-04-271-1/+1
|
* Fix incorrect usage of once flag in async Sentinel (#2718)Felipe Machado2023-04-272-2/+3
| | | | | | | In the execute_command of the async Sentinel, the once flag was being used incorrectly, with its meaning inverted. To fix we just needed to invert the if and else bodies. This isn't being caught by the tests currently because the tests of commands that use this flag do not check their results/effects (for example the "test_ckquorum" test).
* Improving Vector Similarity Search Example (#2661)Tyler Hutcherson2023-04-131-24/+586
| | | | | | | | | | | | | | | | | * update vss docs * add embeddings creation and storage examples * update based on feedback * fix version and link * include more realistic search examples and clean up indices * completely remove initial cap reference --------- Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Update example of Redisearch creating index (#2703)mzdehbashi-github2023-04-131-1/+5
| | | When creating index, fields should be passed inside an iterable (e.g. list or tuple)
* asyncio: Fix memory leak caused by hiredis (#2693) (#2694)Oran Avraham2023-04-133-6/+9
|
* Really do not use asyncio's timeout lib before 3.11.2 (#2699)Mirek Długosz2023-04-131-1/+1
| | | | | | | 480253037afe4c12e38a0f98cadd3019a3724254 made async-timeout required only on Python 3.11.2 and earlier. However, according to PEP-508, python_version marker is compared to first two numbers of Python version tuple - so it will evaluate to True also on 3.11.3, and install a package as a dependency.
* Version 4.5.4 (#2674)v4.5.4dvora-h2023-03-291-1/+1
|
* Fix async (#2673)dvora-h2023-03-292-29/+26
|
* Fixing cancelled async futures (#2666)Chayim2023-03-297-75/+234
| | | | | Co-authored-by: James R T <jamestiotio@gmail.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Fix issue 2660: PytestUnraisableExceptionWarning from asycio client (#2669)shacharPash2023-03-281-0/+5
|
* removing useless files (#2642)Chayim2023-03-282-706/+0
|
* UnixDomainSocketConnection missing constructor argument (#2630)woutdenolf2023-03-281-1/+2
|
* fix: do not use asyncio's timeout lib before 3.11.2 (#2659)Thiago Bellini Ribeiro2023-03-283-3/+7
| | | | | | | | | | | | There's an issue in asyncio's timeout lib before 3.11.3 that causes async calls to raise `CancelledError`. This is a cpython issue that was fixed in this commit [1] and cherry-picked to previous versions, meaning 3.11.3 will work correctly. Check [2] for more info. [1] https://github.com/python/cpython/commit/04adf2df395ded81922c71360a5d66b597471e49 [2] https://github.com/redis/redis-py/issues/2633
* AsyncIO Race Condition Fix (#2641)v4.5.3Chayim2023-03-227-6/+764
|