Change8

v6.1.0

Breaking Changes
📦 redis-pythonView on GitHub →
1 breaking2 features🐛 4 fixes🔧 5 symbols

Summary

The release adds RedisCluster transaction support and makes Retry/backoff classes comparable and hashable, while fixing several SSL, runtime, and pipeline bugs; it also includes a breaking change to RedisSSLContext's default `check_hostname`.

⚠️ Breaking Changes

  • The default value for the `check_hostname` field of `RedisSSLContext` was changed, which may cause SSL verification behavior differences. Update code to explicitly set `check_hostname` as needed or upgrade to version 6.2.0 where the change is reverted.

Migration Steps

  1. If your code relied on the previous default of `RedisSSLContext.check_hostname`, explicitly set the desired value when creating the SSL context.
  2. Upgrade to version 6.2.0 to obtain the reverted default behavior if you prefer the old semantics.

✨ New Features

  • Added support for transactions in the `RedisCluster` client.
  • Implemented equality (`__eq__`) and hashability (`__hash__`) for `Retry` and backoff classes.

🐛 Bug Fixes

  • Fixed `RedisCluster` connections not inheriting `ssl_check_hostname`; when `ssl_cert_reqs=\"none\"`, `check_hostname` is now set to `False`.
  • Prevented `RuntimeError` when reinitializing clusters in both sync and async modes.
  • Fixed `AttributeError` on `ClusterPipeline`.
  • Ensured equality and hashability additions to `Retry` and backoff classes resolve integration issues with Django RQ.

Affected Symbols