unstale

pypi / redis

redis

What changed in redis 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-04.

9 breaking1 security5 deprecations85 new APIs and options11 behavior and defaults3 tooling45 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

redis 891 changes

Breaking changes 4

  • Decodes ACL LOG string values on the default RESP3 legacy callback.

    8.1.0release notes

  • Makes the listen method block.

    8.0.1release notes

  • The default is now 5 seconds; blocking commands may raise TimeoutError before their command timeout elapses.

    8.0.0release notes

  • Overloads now expose concrete sync return types and Awaitable-wrapped async return types; annotations relying on the previous combined union may need updating.

    8.0.0release notes

Deprecations 3

  • Deprecation is aligned for lib_name in async cluster.

    8.0.0release notes

  • Deprecation is aligned for lib_version in async cluster.

    8.0.0release notes

  • A deprecation notice was added to the setex() method.

    8.0.0release notes

New APIs and options 59

  • Adds support for moving multiple elements between lists with the blocking command.

    8.1.0release notes

  • Adds the COLLECT reducer to search aggregations.

    8.1.0release notes

  • ConnectionPool now supports use as a context manager.

    8.1.0release notes

  • Adds support for the FT.ALIASLIST command.

    8.1.0release notes

  • Adds experimental client-side HIMPORT fieldset support for standalone and cluster clients; the public API may change in a future minor version.

    8.1.0release notes

  • Adds support for moving multiple elements between lists.

    8.1.0release notes

  • Async standalone and cluster clients now support server-pushed maintenance notifications, allowing applications to adapt connection handling during maintenance.

    8.1.0release notes

  • Adds replica sentinel aliases.

    8.1.0release notes

  • Adds support for the set difference cardinality command.

    8.1.0release notes

  • Adds aclose() to release Sentinel client pools.

    8.1.0release notes

  • Adds close() to release Sentinel client pools.

    8.1.0release notes

  • Adds support for the set union cardinality command.

    8.1.0release notes

  • Adds the exclude_empty option, represented by EXCLUDEEMPTY, to TS.MRANGE.

    8.1.0release notes

  • Adds the exclude_empty option, represented by EXCLUDEEMPTY, to TS.MREVRANGE.

    8.1.0release notes

  • Adds support for the TS.NRANGE Time Series command.

    8.1.0release notes

  • Adds support for the TS.NREVRANGE Time Series command.

    8.1.0release notes

  • Adds TS.QUERYLABELS support to the Time Series command surface.

    8.1.0release notes

  • Adds support for the TS.READ Time Series command.

    8.1.0release notes

  • Adds MAXCOUNT option support to XREAD.

    8.1.0release notes

  • Adds MAXSIZE option support to XREAD.

    8.1.0release notes

  • Adds MAXCOUNT option support to XREADGROUP.

    8.1.0release notes

  • Adds MAXSIZE option support to XREADGROUP.

    8.1.0release notes

  • Adds a Redis Array command helper for indexed reads.

    8.0.0release notes

  • Adds the ARGREP Redis Array command helper.

    8.0.0release notes

  • Adds the ARMGET Redis Array command helper.

    8.0.0release notes

  • Adds the ARMSET Redis Array command helper.

    8.0.0release notes

  • Adds the AROP Redis Array command helper.

    8.0.0release notes

  • Adds a Redis Array ring-buffer write command helper.

    8.0.0release notes

  • Adds a Redis Array range-scan command helper.

    8.0.0release notes

  • Adds a Redis Array command helper for indexed writes.

    8.0.0release notes

  • New protocol type used in overload signatures to distinguish async-client return types.

    8.0.0release notes

  • Adds async keyspace notification support for cluster deployments.

    8.0.0release notes

  • Adds async keyspace and keyevent notification support for standalone deployments.

    8.0.0release notes

  • Adds support for a custom Claude command.

    8.0.0release notes

  • Adds a high-level keyspace notification API for cluster deployments, managing subscriptions across primary nodes.

    8.0.0release notes

  • Async RedisCluster now supports shard-channel PubSub, routing subscriptions by key-slot hashing and managing per-node connections.

    8.0.0release notes

  • Adds COUNT aggregator support to some sorted-set commands.

    8.0.0release notes

  • Retrieve shard-channel messages with async cluster PubSub.

    8.0.0release notes

  • Adds support for the INCREX command.

    8.0.0release notes

  • JSON.SET now supports the FPHA floating-point homogeneous array argument.

    8.0.0release notes

  • Adds a high-level keyspace and keyevent notification API for standalone deployments.

    8.0.0release notes

  • Set legacy_responses=False to opt into protocol-independent unified response shapes.

    8.0.0release notes

  • Async keyspace notification workflows support listen().

    8.0.0release notes

  • PubSub subscriptions now support binary channel names and handlers.

    8.0.0release notes

  • Adds a random load balancing strategy that allows use of the primary.

    8.0.0release notes

  • Adds helpers for the preview Redis Arrays data type, including indexed access, range scans, deletion, insertion, ring-buffer writes, metadata, text search, and aggregation.

    8.0.0release notes

  • Create a cluster pubsub instance from the async RedisCluster client.

    8.0.0release notes

  • Sync keyspace notification workflows support run_in_thread().

    8.0.0release notes

  • Subscribe to shard channels with async cluster PubSub.

    8.0.0release notes

  • Convenience method for keyevent subscriptions.

    8.0.0release notes

  • Convenience method for keyspace subscriptions.

    8.0.0release notes

  • Convenience method for subkeyevent subscriptions.

    8.0.0release notes

  • Convenience method for subkeyspace subscriptions.

    8.0.0release notes

  • Convenience method for subkeyspaceevent subscriptions.

    8.0.0release notes

  • Convenience method for subkeyspaceitem subscriptions.

    8.0.0release notes

  • Unsubscribe from shard channels with async cluster PubSub.

    8.0.0release notes

  • New protocol type used in overload signatures to distinguish sync-client return types.

    8.0.0release notes

  • Adds support for multiple aggregators in Time Series commands.

    8.0.0release notes

  • Adds support for the XNACK command.

    8.0.0release notes

Behavior and default changes 6

  • Connection pools now default to max_connections=100.

    8.0.0release notes

  • The default wire protocol is now RESP3; set protocol=2 to force RESP2 or protocol=3 for native RESP3 response shapes.

    8.0.0release notes

  • Retry defaults now use 10 attempts with exponential jitter backoff.

    8.0.0release notes

  • The default connection timeout is now 5 seconds.

    8.0.0release notes

  • Socket reads now use a 32 KB buffer by default.

    8.0.0release notes

  • TCP keepalive is enabled by default.

    8.0.0release notes

Tooling 1

Fixes and other changes 18

  • Concurrent hiredis disconnects now raise ConnectionError instead of AttributeError.

    8.1.0release notes

  • Fixes FIELDNAME aliases dropping the first character of un-prefixed fields.

    8.1.0release notes

  • Fixes the latitude/longitude swap in the search querystring geo() helper.

    8.1.0release notes

  • Restores the NEVER_DECODE option for FT.SEARCH with protocol=3.

    8.1.0release notes

  • Detects closed pooled connections without consuming pending push data when using RESP3 with hiredis.

    8.1.0release notes

  • Fixes Sentinel pool capacity loss after failover.

    8.1.0release notes

  • Fixes a double-decoding issue in unquote().

    8.1.0release notes

  • Fixes parsing RESP3 FT.SEARCH responses when keys are bytes-typed.

    8.0.1release notes

  • Fixes async MultiDBClient when its underlying client is RedisCluster.

    8.0.1release notes

  • Adds the missing URL query argument parser for ssl_min_version.

    8.0.1release notes

  • Fixes maintenance notification handling over Unix sockets.

    8.0.1release notes

  • Fixes async cluster connection cleanup during topology refresh.

    8.0.0release notes

  • Fixes a hang when invalidation arrives on another connection and a TypeError when a cached response is non-bytes.

    8.0.0release notes

  • Explicit None values for client metadata configuration are preserved.

    7.2.2 … 8.0.0release notesrelease notesrelease notesrelease notes

  • Guards against RuntimeError on Python 3.13 and later.

    8.0.0release notes

  • Scalar prefixes are now normalized.

    8.0.0release notes

  • The return type is now Literal[True].

    8.0.0release notes

  • Handles scientific notation in scores when using RESP2.

    8.0.0release notes

redis 768 changes

Breaking changes 5

  • The batch_size attribute was removed from OTel metrics.

    7.2.1release notes

  • The consumer_name attribute was removed from OTel metrics.

    7.2.1release notes

  • Removes support for Python 3.9.

    7.1.0release notes

  • Adds an abstract method declaration for the cache property setter, affecting implementations of EvictionPolicyInterface.

    7.0.0release notes

  • Removes synchronous context manager handling from async RedisCluster.

    7.0.0release notes

Security 1

  • ConnectionPools no longer expose passwords in plain text logs through their __repr__ methods.

    7.4.0release notes

Deprecations 2

  • Deprecated for cluster clients; use the embedded client-side caching feature instead.

    7.2.0release notes

  • Deprecated for cluster clients; use the embedded client-side caching feature instead.

    7.2.0release notes

New APIs and options 26

  • ClusterPipeline objects now provide access to the cluster client's nodes_manager.

    7.3.0release notes

  • Asynchronous clients now support OpenTelemetry metrics export, including command, connection, resiliency, pubsub, and stream metrics.

    7.3.0release notes

  • ClusterPipeline objects now provide access to set_response_callback.

    7.3.0release notes

  • Adds a local digest command that executes XXH3 locally.

    7.2.0release notes

  • Adds a DriverInfo class for upstream driver tracking.

    7.2.0release notes

  • Adds support for HOTKEYS commands.

    7.2.0release notes

  • Adds support for Redis 8.6's Idempotent Producers feature.

    7.2.0release notes

  • Adds OpenTelemetry instrumentation and metrics export for the sync client, covering commands, connections, resiliency, pubsub, and streams.

    7.2.0release notes

  • Adds support for Redis 8.6 features, including stream idempotent production and HOTKEYS.

    7.2.0release notes

  • Adds ssl_ca_path support to the asynchronous Redis client.

    7.2.0release notes

  • Adds ssl_password support to the asynchronous Redis client.

    7.2.0release notes

  • Adds support for the VRANGE command.

    7.2.0release notes

  • Initial health check policies were added.

    7.1.1release notes

  • Adds experimental support for the CAD command.

    7.1.0release notes

  • Adds experimental support for the CAS command.

    7.1.0release notes

  • In experimental features, replaces the default health check and failure detector with custom ones.

    7.1.0release notes

  • Adds experimental support for HYBRID search.

    7.1.0release notes

  • Adds support for the MSETEX command.

    7.1.0release notes

  • Adds the CLAIM option to XREADGROUP.

    7.1.0release notes

  • Allows customization of the timeout parameter when using a blocking connection pool with a Redis cluster.

    7.0.0release notes

  • Adds an error raised when the server responds with 'problem with LDAP service'.

    7.0.0release notes

  • Adds support for handling maintenance push notifications during server upgrades or maintenance procedures.

    7.0.0release notes

  • An experimental client communicates with multiple eventually consistent databases in an Active-Active setup and handles failures by failing over across databases.

    7.0.0release notes

  • Adds the ssl_verify_flags_config argument for SSL connection configuration.

    7.0.0release notes

  • Adds the WITHATTRIBS option to the vector set vsim command.

    7.0.0release notes

  • Adds score_cast_func to zrank, zrevrank and zunion for consistency with other sorted set commands.

    7.0.0release notes

Behavior and default changes 5

  • Cluster clients handle SMIGRATING and SMIGRATED notifications by relaxing timeouts during migration and reloading cluster state when migration completes.

    7.2.0release notes

  • SCH is disabled by default in MultiDBClient underlying clients.

    7.1.1release notes

  • Logging was added for MultiDBClients.

    7.1.1release notes

  • Expands the cluster READ_COMMANDS list with additional read-only commands.

    7.1.0release notes

  • Applies routing and response aggregation policies in OSS Cluster mode.

    7.1.0release notes

Tooling 2

Fixes and other changes 27

  • Fixes an AttributeError when recording cluster metrics if the connection is None or a ClusterNode instance is used to extract connection info.

    7.4.0release notes

  • Basic Otel classes and functions can now be imported through redis.observability.

    7.4.0release notes

  • The keys parameter type annotation for blpop now uses KeysT.

    7.3.0release notes

  • The keys parameter type annotation for brpop now uses KeysT.

    7.3.0release notes

  • Connections now ensure they have an initialized protocol.

    7.3.0release notes

  • Missing shard channel message types were added to async PubSub.

    7.2.1release notes

  • Reconnects with binary channel names no longer cause UnicodeDecodeError.

    7.2.1release notes

  • Issues with ClusterPipeline connection management were fixed.

    7.2.1release notes

  • Connection attributes are handled conditionally for metrics, and connection data is set on exceptions in cluster error handling.

    7.2.1release notes

  • Fixes lock contention during connection establishment.

    7.2.0release notes

  • Prevents a deadlock when Lock.release() is cancelled.

    7.2.0release notes

  • Fixes handling of circular MOVED redirects in cluster slot mapping.

    7.2.0release notes

  • Fixes invalidation when Redis keys mix str and bytes types.

    7.2.0release notes

  • Fixes ClusterClient behavior when topology is refreshed and addresses places where connections might leak.

    7.2.0release notes

  • Fixes a RuntimeError in the sharded message generator.

    7.2.0release notes

  • Generates a unique command cache key.

    7.1.0, 7.2.0release notesrelease notes

  • Retries the overall connect operation, including socket connect and handshake, addressing PubSub reconnect issues.

    7.2.0release notes

  • Fixes unrecoverable connection state.

    7.2.0release notes

  • Fixes health check handling for the sync PubSub client.

    7.2.0release notes

  • Fixes async clients' safety when used as an async context manager.

    7.0.0release notes

  • Changes the timeout type hint in async BlockingConnectionPool from int to float.

    7.0.0release notes

  • Fixes the synchronous BlockingConnectionPool disconnect method to follow the ConnectionPoolInterface definition.

    7.0.0release notes

  • Adds handling of empty spaces during CLIENT LIST response parsing.

    7.0.0release notes

  • Fixes several *arg type hints in core.py and JSON module commands.

    7.0.0release notes

  • Fixes argument type hints for evalsha and similar commands.

    7.0.0release notes

  • Updates the ping command method return type hint.

    7.0.0release notes

  • Fixes the ordering of SORTABLE, INDEXEMPTY and INDEXMISSING when using RediSearch fields.

    7.0.0release notes