summaryrefslogtreecommitdiff
path: root/redis/commands/core.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix `xadd` allow non negative maxlen (#2739)Seongchuel Ahn2023-05-081-2/+2
| | | | | | | | | * Fix xadd allow non negative maxlen * Update change log --------- Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Add client no-touch (#2745)Seongchuel Ahn2023-05-081-0/+11
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add WITHSCORES to ZREVRANK Command (#2725)shacharPash2023-04-301-2/+11
| | | | | | | | | * add withscores to zrevrank * change 0 -> 2 * fix errors * split test
* [types] update return type of smismember to list[int] (#2617)Raymond Yin2023-03-151-2/+7
| | | | | * update return type of smismember * use Literal instead of int
* Fix for `lpop` and `rpop` return typing (#2590)Galtozzy2023-02-151-2/+10
| | | Right now there is an annoying warning that these methods can't be awaited when using `redis.asyncio`, even tho it does work with no problems.
* Add missing `Union` type in method `StreamCommands.xclaim()` (#2553)David Pacsuta2023-01-221-1/+1
| | | | `Union` was missing in front of `[List[StreamIdT], Tuple[StreamIdT]]` and VSCode was producing an error because of it. After adding `Union` the type annotation is correctly identified by VSCode.
* add str support for set ex parameter (#2529)shacharPash2023-01-051-0/+2
|
* Support for resetchannels since Redis 6.2.0 (#2514)stitch2022-12-261-0/+10
|
* Allow EVAL_RO and EVALSHA_RO to be routed to read replica (#2494)Dongkeun Lee2022-12-251-1/+1
| | | | | | | | | | | | * fix typo (Lue -> Lua) * run eval_ro, evalsha_ro test on redis cluster * Add eval_ro, evalsha_ro to read only commands * assert that commands are run in a round robin manner Co-authored-by: zach.lee <zach.lee@sendbird.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Combine auto-concatenated strings (#2482)David Gilman2022-12-141-24/+18
|
* Add support for certain LATENCY commands (#2503)dvora-h2022-12-141-0/+24
| | | | | * add latency commands * fix tests in cluster
* Intentional NotImplementedError for LATENCY commands that should not be in ↵Chayim2022-12-121-0/+28
| | | | client (#2501)
* Wrong number of arguments for `geosearch` command (#2464)dvora-h2022-12-011-1/+1
| | | | Co-authored-by: Chayim <chayim@users.noreply.github.com> Fixes https://github.com/redis/redis-py/issues/2462
* Enable AsyncIO cluster mode lock (#2446)Milhan2022-11-091-2/+10
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Remove default None value from LMPOP (#2438)dvora-h2022-10-301-1/+1
|
* Add BITFIELD_RO (#2340)Alibi2022-08-211-0/+23
|
* Fix timezone handling for datetime to unixtime conversions (#2213)joe2022-08-021-12/+6
| | | | | | | | | | | | | | * Fix timezone handling for datetime to unixtime conversions datetime objects are supported to set expire, these can have timezones. mktime was used to convert these to unixtime. mktime in Python however is not timezone aware, it expects the input to be UTC and redis-py did not convert the datetime timestamps to UTC before calling mktime. This can lead to: 1) Setting incorrect expire times because the input datetime object has a timezone but is passed to mktime without converting to UTC first. 2) When the datetime timestamp is within DST, mktime fails with "OverflowError: mktime argument out of range" because UTC doesn't have DST. This depends on libc versions. * linters Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fix typing on smembers command (#2312)Agustin Marquez2022-07-311-1/+2
|
* Fix: `start_id` type for `XAUTOCLAIM` (#2257)Антон Безденежных2022-07-241-1/+1
| | | | | | | * Changed start_id type for xautoclaim * Added to changes Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* 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
* 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 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-301-107/+24
|
* fix: changed list type to single element type (#2203)Oleg A2022-05-301-7/+7
|
* fix incorrect test (#2177)Avital Fine2022-05-161-3/+5
| | | | | * fix incorrect test * Fix types
* Add support for COMMAND LIST (#2149)dvora-h2022-05-081-0/+28
| | | | | * Add support for COMMAND LIST * style change
* 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>
* 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
|
* Fix typing in getex command (#2088)Andrew Chen Wang2022-04-181-1/+1
|
* Cluster commands linkdocs (#2069)Binbin2022-04-041-258/+258
| | | | | | | | | | | | | | * 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 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
* 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>
* Add support for PEXPIRETIME (#1861)dvora-h2022-03-071-0/+9
| | | | | * add pexpiretime * skip test
* Add support for EXPIRETIME (#1860)dvora-h2022-03-071-0/+9
| | | | | * add expiretime * skip test
* Implemented COMMAND DOCS by always throwing NotImplementedError (#2020)dvora-h2022-03-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * command docs * Add support for AUTH (#1929) * Add support for AUTH * Fix linter error * test fix * fix test in cluster Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: dvora-h <dvora.heller@redis.com> * Add support for JSON, TIMESERIES, BLOOM & GRAPH commands in cluster (#2032) Co-authored-by: Chayim <chayim@users.noreply.github.com> * Add support for HSET items (#2006) * Add `items` parameter to `hset` * Add test for `hset` with `items` * Update CHANGES * fix test_profile Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com> * Add cluster support for functions (#2016) * cluster support for functions * fix test_list_on_cluster mark * fix mark * cluster unstable url * fix * fix cluster url * skip tests * linters * linters * skip test Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dogukanteber <47397379+dogukanteber@users.noreply.github.com> Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: Marek Czaplicki <mdczaplicki@gmail.com>