summaryrefslogtreecommitdiff
path: root/redis/commands
Commit message (Collapse)AuthorAgeFilesLines
...
* docs: Fix a few typos (#2274)Tim Gates2022-07-241-1/+1
| | | | | | | | | | | | | | | | | * docs: Fix a few typos There are small typos in: - redis/cluster.py - redis/commands/core.py - redis/ocsp.py - tests/test_cluster.py Fixes: - Should read `validity` rather than `valididy`. - Should read `reinitialize` rather than `reinitilize`. - Should read `farthest` rather than `farest`. - Should read `commands` rather than `comamnds`. * Update core.py
* Fix crash: key expire while search (#2270)dvora-h2022-07-241-1/+1
| | | | | * fix expire while search * sleep
* commands/cluster: use pipeline to execute split commands (#2230)Utkarsh Gupta2022-06-273-97/+125
| | | | | | - allow passing target_nodes to pipeline commands - move READ_COMMANDS to commands/cluster to avoid import cycle - add types to list_or_args
* Docs: Add a note about client_setname and client_name difference (#2247)Paweł Srokosz2022-06-231-0/+6
|
* SHUTDOWN - add support for the new NOW, FORCE and ABORT modifiers (#2150)dvora-h2022-06-011-6/+37
| | | | | | | | | | | | | | | * add support for NOW, FORCE and ABORT modifiers * linters * test * linters * test params * fix tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Add `query_params` to FT.PROFILE (#2198)dvora-h2022-06-011-11/+19
| | | | | | | * ft.profile query_params * fix pr comments * type hints
* Fix tests for Redis 7 (#2182)dvora-h2022-05-311-1/+1
| | | | | * fix tests * async
* Add default None for maxlen at xtrim command (#2188)mfgnik2022-05-311-1/+4
| | | | | | | | * Add default None for maxlen at xtrim command * Fix linter Co-authored-by: Mikhail Fedorov <mfgnik@yandex.team.ru> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* update black to 22.3.0 (#2171)Utkarsh Gupta2022-05-305-149/+32
|
* Fix Missing ClusterPipeline Lock (#2190)Greg Melton2022-05-302-0/+2
| | | | | | | | | | | * ClusterPipeline needs to initialize self._lock, otherwise a class instance will fail when calling get_redis_connection on the node * fix bad lint picked up from master * added change to CHANGES file * force ci build again * force ci build again
* fix: changed list type to single element type (#2203)Oleg A2022-05-301-7/+7
|
* Support CF.MEXISTS + Clean bf/commands.py (#2184)Avital Fine2022-05-231-61/+40
| | | | | | | * Support CF.MEXISTS * Clean bf/commands.py Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fix Linting and Test Failures (#2191)Greg Melton2022-05-231-1/+1
| | | | | | | * force triggering pr pipeline * fix lint error * https://github.com/RedisJSON/RedisJSON/pull/721 no longer clears strings or boolean scalars
* Fix modules links to https://redis.io/commands/ (#2185)Avital Fine2022-05-175-104/+96
|
* fix incorrect test (#2177)Avital Fine2022-05-161-3/+5
| | | | | * fix incorrect test * Fix types
* fix import (#2175)v4.3.1dvora-h2022-05-091-1/+2
|
* Get command keys for subcommands (#2170)dvora-h2022-05-081-1/+25
| | | | | * parse subcommands * fix tests
* Add support for CLUSTER SHARDS (#2151)dvora-h2022-05-081-0/+8
| | | | | | | | | * Add support for CLUSTER SHARDS * linters * add docstring * linters
* Add support for COMMAND LIST (#2149)dvora-h2022-05-081-0/+28
| | | | | * Add support for COMMAND LIST * style change
* Add Async RedisCluster (#2099)Utkarsh Gupta2022-05-083-161/+410
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Copy Cluster Client, Commands, Commands Parser, Tests for asyncio * Async Cluster Tests: Async/Await * Add Async RedisCluster * cluster: use ERRORS_ALLOW_RETRY from self.__class__ * async_cluster: rework redis_connection, initialize, & close - move redis_connection from NodesManager to ClusterNode & handle all related logic in ClusterNode class - use Locks while initializing or closing - in case of error, close connections instead of instantly reinitializing - create ResourceWarning instead of manually deleting client object - use asyncio.gather to run commands/initialize/close in parallel - inline single use functions - fix test_acl_log for py3.6 * async_cluster: add types * async_cluster: add docs * docs: update sphinx & add sphinx_autodoc_typehints * async_cluster: move TargetNodesT to cluster module * async_cluster/commands: inherit commands from sync class if possible * async_cluster: add benchmark script with aredis & aioredis-cluster * async_cluster: remove logging * async_cluster: inline functions * async_cluster: manage Connection instead of Redis Client * async_cluster/commands: optimize parser * async_cluster: use ensure_future & generators for gather * async_conn: optimize * async_cluster: optimize determine_slot * async_cluster: optimize determine_nodes * async_cluster/parser: optimize _get_moveable_keys * async_cluster: inlined check_slots_coverage * async_cluster: update docstrings * async_cluster: add concurrent test & use read_response/_update_moved_slots without lock Co-authored-by: Chayim <chayim@users.noreply.github.com>
* ACL SETUSER - add selectors and key based permissions (#2161)dvora-h2022-05-031-4/+28
| | | | | | | * acl setuser * async tests Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Add support for redis 7 streams features (#2157)dvora-h2022-05-031-1/+9
| | | | | | | | | | | | | * xadd * streams redis 7 * linters * test xinfo stream * test xinfo stream * test xclaim
* Implemented LATENCY HISTOGRAM by always throwing NotImplementedError (#2147)dvora-h2022-05-021-0/+9
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Minor cleanups in commands/cluster.py (#2094)Binbin2022-04-281-4/+3
|
* Add async supoort for SEARCH commands (#2096)dvora-h2022-04-284-2/+317
| | | | | | | | | | | | | * Add async supoort for SEARCH commands * linters * linters * linters * linters * linters
* Update xtrim type annotation (#2093)Rich Li2022-04-281-1/+1
|
* Fix incorrect return statement in auth (#2086) (#2092)Kamyab Taghizadeh2022-04-281-3/+5
|
* Add support for MODULE LOADEX (#2146)dvora-h2022-04-271-0/+21
|
* INFO - add support for taking multiple section arguments (#2145)dvora-h2022-04-271-2/+4
| | | | | * add support for taking multiple section arguments * skip test
* support set multi parameters (#2143)dvora-h2022-04-271-2/+8
|
* support get multi parameters (#2142)dvora-h2022-04-271-2/+4
|
* Add support for COMMAND GETKEYSANDFLAGS (#2141)dvora-h2022-04-271-0/+8
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Update FUNCTION LOAD changes (#2139)dvora-h2022-04-271-14/+6
|
* Support CASESENSITIVE for TAG fields (#2112)Avital Fine2022-04-251-4/+13
| | | | | * Support CASESENSITIVE for TAG fields * add wait fot index + update all the callings to use getattr() instead of the string "idx"
* Fix typing in getex command (#2088)Andrew Chen Wang2022-04-181-1/+1
|
* Cluster commands linkdocs (#2069)Binbin2022-04-042-263/+348
| | | | | | | | | | | | | | * Link documentation for all cluster commands Added links to the documentation in the docstrings in redis/commands/cluster.py Part of #1712 * copy stralgo comment from commands/core.py to commands/cluster.py * fix linters Co-authored-by: enjoy-binbin <binbin.zhu@tenclass.com> Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Add support for BIT|BYTE option (#2068)dvora-h2022-04-041-0/+7
| | | | | * Add support for BIT|BYTE option * linters
* commands/core.py: Clarify bit type (#2078)Dustin Oprea2022-04-041-2/+2
| | | Calling it 'boolean' is misleading in the context of Python.
* Add dialect support for RediSearch queries (#2071)dvora-h2022-03-311-0/+12
| | | | | | | * Add dialect support for RediSearch queries * type hints Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Add support for CLUSTER MYID (#2063)Binbin2022-03-311-0/+11
| | | Co-authored-by: enjoy-binbin <binbin.zhu@tenclass.com>
* Support for Vector Fields for Vector Similarity Search (#2041)Avital Fine2022-03-231-5/+70
| | | | | | | | | | | | | | | | | | | | | | | * Support Vector field in FT.CREATE command * linters * fix data error * change to dic * add type hints and docstring to constructor * test not supported algorithm * linters * fix errors * example * delete example Co-authored-by: dvora-h <dvora.heller@redis.com>
* [CLUSTER] Fix scan command cursors & Fix scan_iter (#2054)Utkarsh Gupta2022-03-231-0/+38
| | | | | | | * cluster/scan: fix return cursor & change default node to primaries * cluster/scan_iter: fix iteration Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Add support for SORT_RO (#1858)dvora-h2022-03-141-0/+33
| | | | | | | | | * add sort_ro * mark test as onlynon cluster * delete mark test as onlynoncluster * skip test
* fix TypeError (#2050)dvora-h2022-03-142-0/+5
|
* Add support for PEXPIREAT's options (#2027)dogukanteber2022-03-141-5/+28
| | | | | | | | * Add support for PEXPIREAT's options * add variables to the function header. Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for PEXPIRE command's option (#2026)dogukanteber2022-03-141-5/+29
| | | | | | | | | * Add support for PEXPIRE command's option * Alter method arguments * add variables to the function header Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for EXPIREAT command's options (#2024)dogukanteber2022-03-141-4/+30
| | | | | | | | | | | | | | * Add support for EXPIREAT command's options * Fix linter errors * Make changes on method arguments * Fix linter errors * add variables to the function header Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Add support for EXPIRE command's options (#2002)dogukanteber2022-03-141-4/+30
| | | | | | | | | | | | | * Add support for EXPIRE command's options * Add requested changes * Change method arguments * add variables to the function header Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Update sentinel.py (#2045)ondrej2022-03-141-1/+1
| | | Fixed a typo in word 'sentinel'
* Add support for CLUSTER LINKS (#2019)dvora-h2022-03-141-0/+12
| | | | | | | | | * cluster links * docstring * skip test Co-authored-by: Chayim <chayim@users.noreply.github.com>