v7.2.0
📦 redis-pythonView on GitHub →
✨ 12 features🐛 10 fixes⚡ 1 deprecations🔧 10 symbols
Summary
This release introduces major support for Redis 8.6 features like Idempotent Producers and HOTKEYS, alongside comprehensive OpenTelemetry metrics integration. It also brings significant stability improvements, particularly around Redis Enterprise Cluster maintenance notifications and connection handling.
Migration Steps
- For cluster clients, replace usage of client_tracking_on and client_tracking_off with the embedded client-side caching feature.
✨ New Features
- Added support for Redis 8.6, including new commands and features for streams idempotent production and HOTKEYS.
- Introduced comprehensive support for Redis Enterprise Cluster maintenance notifications via SMIGRATING/SMIGRATED push notifications, including automatic slot migration handling (relaxing timeouts during SMIGRATING and triggering cluster state reloads upon SMIGRATED).
- Added comprehensive OpenTelemetry metrics support following Semantic Conventions, covering command duration, connection stats, resiliency events, Pub/Sub, and Stream metrics.
- Added OTel instrumentation and metrics export for the sync client.
- Added maintenance notifications support for OSS API cluster clients.
- Added hotkeys commands support.
- Adds support for the new Idempotent Producers feature in Redis 8.6.
- Adding support for vrange command.
- Added a local digest command to execute XXH3 locally.
- Add DriverInfo class for upstream driver tracking.
- Add ssl_password support to async Redis client.
- Add ssl_ca_path support to async Redis client.
🐛 Bug Fixes
- Fix handling of circular MOVED redirects in cluster slot mapping.
- Prevent deadlock when Lock.release() is cancelled in asyncio.
- Fix unrecoverable connection state.
- Fixed potential race condition between call_later() and run_forever().
- Fix RuntimeError in ClusterPubSub sharded message generator.
- Fix async connection pool lock contention during connection establishment.
- Fix PubSub client health check handling for sync client implementation.
- Adding retries for the overall connect (socket connect + handshake), fixing pubsub reconnect issues.
- Fix client-side cache invalidation for mixed str and bytes Redis keys.
- Generating unique command cache key.
Affected Symbols
⚡ Deprecations
- The functions client_tracking_on and client_tracking_off are deprecated for cluster clients. Users should switch to using the embedded client-side caching feature instead.