Releases: redis/redis-py
5.1.0b3
Changes
🧪 Experimental Features
- Expose delete functions, rename attributes, add AbstractCache class (#3110)
- Support client side caching with RedisCluster (#3102)
🚀 New Features
- Adding lock_name to LockError (#3023)
🐛 Bug Fixes
- Fix possible pipeline connections leak (#3104)
- Return a copy of the response from cache (#3106)
- Fix:
HSET
unexpectedly mutates the list passed to items (#3103)
🧰 Maintenance
- Updating async-timeout to 4.0.3 (#3109)
- Fix type hint of arbitrary argument lists (#2908)
- Fix
JSON.OBJLEN
type hint (#2966) - Fix
HDEL
type hint (#3029) - Docs: organize cluster mode part of lua scripting (#3073)
Contributors
We'd like to thank all the contributors who worked on this release!
@AYMENJD, @AniketP04, @BackflipPenguin, @ING-XIAOJIAN, @MrDenkoV, @Pedram-Parsian, @TheBlusky, @akx, @chayim, @d184230, @danielzhangau, @dependabot, @dependabot[bot], @dmkulazhenko, @dvora-h, @enjoy-binbin, @jakob-keller, @kristjanvalur, @mattwang44, @parmenashp, @r0ro, @sjpotter, @tbbream, @trkwyk, @zware and @zxjlm
5.1.0b2
5.1.0b1
Changes
🔥 Breaking Changes
- Removing Python 3.7 compatibility (#2928)
- Update repr of important classes with module name and recommended "< … (#3001)
- Prevent async ClusterPipeline instances from becoming "false-y" in ca… (#3068)
🧪 Experimental Features
- Client side caching invalidations (standalone) (#3089)
🐛 Bug Fixes
- Fix
acl_genpass
with bits (#3062) - Allow the parsing of the asking command to forward original options (#3012)
- Prevent async ClusterPipeline instances from becoming "false-y" in ca… (#3068)
- Fix parsing of
FT.PROFILE
result (#3063) - Use
disable_decoding
in asyncread_response
with hiredis parser. (#3042) - Fix return types in json commands (#3071)
- Fix Specifying Target Nodes broken hyperlink (#3072)
🧰 Maintenance
- Update reported version deprecation in asyncio.client (#2968)
- Make the connection callback methods public again, add documentation (#2980)
- Update repr of important classes with module name and recommended "< … (#3001)
- Typo in advanced features documentation (#3019)
- Fix typos in documentation (#3016
- Add "sum" to DUPLICATE_POLICY documentation of TS.CREATE, TS.ADD and TS.ALTER (#3027)
- Fixed typo in ocsp.py (#3022)
- Creating CODEOWNERS for documentation (#2993)
Contributors
We'd like to thank all the contributors who worked on this release!
@AYMENJD, @AniketP04, @BackflipPenguin, @MrDenkoV, @Pedram-Parsian, @akx, @chayim, @d184230, @danielzhangau, @dependabot, @dependabot[bot], @dvora-h, @enjoy-binbin, @jakob-keller, @kristjanvalur, @parmenashp, @r0ro, @sjpotter, @tbbream and @zware
5.1.0a1
Changes
🧪 Experimental Features
- Client Side Caching (#3038)
🚀 New Features
- Add GEOSHAPE field type for index creation of RediSearch (#2957)
🐛 Bug Fixes
- Fix parsing resp3 dicts (#2982)
- Fix BlockingConnectionPool.from_url parsing of timeout in query args #2983 (#2984)
- Fix incorrect lock scope in BlockingConnectionPool (#2997)
- Fixing type hint on from_url (#2963)
🧰 Maintenance
- Update client.py sleep_time typing for run_in_thread function (#2977)
- Better handling of "lost" connections for async Redis (#2999)
- Linking to Redis learning resources (#3006)
- Close various objects created during asyncio tests (#3005)
Contributors
We'd like to thank all the contributors who worked on this release!
@chayim, @d184230, @danielzhangau, @dependabot, @dependabot[bot], @dvora-h, @kristjanvalur, @r0ro and @sjpotter
5.0.1
Changes
🚀 New Features
- Provide aclose() / close() for classes requiring lifetime management (#2898)
- Add support for
ModuleCommands
in cluster (#2951) - Add support for multiple values in
RPUSHX
(#2949) - Add
Redis.from_pool()
class method, for explicitly owning and closing a ConnectionPool (#2913)
🐛 Bug Fixes
- Fixing monitor parsing for messages containing specific substrings (#2950)
- Cluster determine slot command name need to be upper (#2919)
- Support timeout = 0 in search query (#2934)
- Fix async sentinel: add
push_request
keyword argument toread_response
(#2922) - Fix protocol checking for search commands (#2923)
- Fix: SentinelManagedConnection.read_response() got an unexpected keyword argument 'push_request' (#2894)
- Fix: automatically close connection pool for async Sentinel (#2900)
- Save a reference to created async tasks, to avoid tasks potentially disappearing (#2816)
- Avoid reference cycling by the garbage collector during response reading (#2932)
🧰 Maintenance
- Type hint improvements (#2952)
- Replace
clear_connect_callbacks
with_deregister_connect_callback
(#2955) - Async fixes, remove del and other things (#2870)
- Add pagination, sorting and grouping examples to search json example (#2890)
- Remove process-id checks from asyncio. Asyncio and fork() does not mix. (#2911)
- Fix resource usage and cleanup Mocks in the unit tests (#2936)
- Remove mentions of tox (#2929)
- Add 7.2 to supported Redis versions (#2896)
- Fix resource warnings in unit tests (#2899)
- Fix typo in redis-stream-example.ipynb (#2918)
- Deprecate RedisGraph (#2927)
- Fix redis 7.2.0 tests (#2902)
- Fix test_scorer (search) (#2920)
Contributors
We'd like to thank all the contributors who worked on this release!
@AOrazaev, @akx, @anio, @chayim, @dvora-h, @elfkuzco, @hauntsaninja, @kristjanvalur, @meiravgri, @uglide and @yangbodong22011
5.0.0
What's new?
Triggers and Functions support
Triggers and Functions allow you to execute server-side functions triggered when key values are modified or created in Redis, a stream entry arrival, or explicitly calling them. Simply put, you can replace Lua scripts with easy-to-develop JavaScript or TypeScript code. Move your business logic closer to the data to ensure a lower latency, and forget about updating dependent key values manually in your code.
Try it for yourself with Quick start
Full Redis 7.2 and RESP3 support
Python 3.7 End-of-Life
Python 3.7 has reached its end-of-life (EOL) as of June 2023. This means that starting from this date, Python 3.7 will no longer receive any updates, including security patches, bug fixes, or improvements. If you continue to use Python 3.7 post-EOL, you may expose your projects and systems to potential security vulnerabilities. We ended its support in this version and strongly recommend migrating to Python 3.10.
🐛 Bug Fixes
🧰 Maintenance
- Updating client license to clear, MIT (#2884)
- Add py.typed in accordance with PEP-561 (#2738)
- Dependabot label change (#2880)
- Fix type hints in SearchCommands (#2817)
- Add sync modules (except search) tests to cluster CI (#2850)
- Fix a duplicate word in
CONTRIBUTING.md
(#2848) - Fixing doc builds (#2869)
- Change cluster docker to edge and enable debug command (#2853)
Contributors
We'd like to thank all the contributors who worked on this release!
@JoanFM, @Ovsyanka83, @chayim, @dependabot, @dependabot[bot], @dvora-h, @kristjanvalur, @kurtmckee, @pall-j and @shacharPash
5.0.0rc2
5.0.0rc1
4.6.0
Changes
🧪 Experimental Features
🚀 New Features
- Extract abstract async connection class (#2734)
- Add support for
WAITAOF
(#2760) - Introduce OutOfMemoryError exception for Redis write command rejections due to OOM errors (#2778)
- Add
WITHSCORE
argument toZRANK
(#2758)
🐛 Bug Fixes
- Fix dead weakref in sentinel connection causing ReferenceError (#2767) (#2771)
- Fix Key Error in parse_xinfo_stream (#2788)
- Remove unnecessary __del__ handlers (#2755)
- Added support for missing argument to SentinelManagedConnection.read_response() (#2756)
🧰 Maintenance
- Fix type hint for retry_on_error in async cluster (#2804)
- Clean up documents and fix some redirects (#2801)
- Add unit tests for the
connect
method of all Redis connection classes (#2631) - Docstring formatting fix (#2796)
Contributors
We'd like to thank all the contributors who worked on this release!
@Smit-Parmar, @TheKevJames, @aciddust, @bmacphee, @bodevone, @dvora-h, @kristjanvalur, @shacharPash, @shahar-lev, @vmihailenco and @woutdenolf