v8.0.0b2
Breaking Changes📦 redis-pythonView on GitHub →
⚠ 2 breaking✨ 1 features
Summary
This release unifies command response types across RESP2 and RESP3 protocols and changes the default protocol configuration from RESP2 to RESP3, introducing richer native types and improved performance.
⚠️ Breaking Changes
- The response types for commands across RESP2 and RESP3 protocols have been unified. This means commands now return the same Python type regardless of the protocol version, which breaks compatibility with previous versions where protocol-specific types were returned.
- The default protocol for all Redis clients and connections has been changed from RESP2 to RESP3. Applications relying on RESP2 behavior or types by default will now receive RESP3 responses.
Migration Steps
- If you require the previous default protocol configuration (RESP2), explicitly set `protocol=2` when creating your client or connection.
- Review the migration guide at `specs/resp2_resp3_migration_guide.md` and the list of affected commands in `docs/resp_unification.rst` to update application code that relied on protocol-specific response types.
✨ New Features
- Added random load balancing strategy which allows for use of the primary.