diff mbox series

[meta-python,4/6] python3-redis: Upgrade 8.1.0 -> 8.2.0

Message ID 20261123133617.3614096-4-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python,1/6] python3-argcomplete: Upgrade 3.7.2 -> 3.8.0 | expand

Commit Message

Leon Anavi Nov. 23, 2026, 1:36 p.m. UTC
Upgrade to release 8.2.0:

Client-side caching: tracking modes and metadata-driven eligibility:

CacheConfig takes a new tracking_mode option: TrackingMode.PLAIN, OPTIN
or OPTOUT. With OPTIN or OPTOUT, the server tracks only the keys that
the client caches. PLAIN is the default and keeps the current behavior.
An optional cache_predicate(command, keys) decides which eligible
replies are stored.

Cache eligibility and cluster replica routing now come from one source:
the command metadata in redis.commands.metadata. You can pass a
MetadataResolver with metadata_resolver= to Redis, ConnectionPool,
RedisCluster and redis.asyncio.RedisCluster. This lets module commands,
for example from FalkorDB, use replica reads through custom metadata.
CacheConfig.DEFAULT_ALLOW_LIST and READ_COMMANDS are deprecated and are
no longer read.

Cluster routing and topology refresh:

The cluster clients now route MULTI_SHARD and ALL_SHARDS commands, and
commands with movable keys, by the request and response tips that the
server publishes. A multi-shard command is split per slot and sent in
one pipeline per node, and a retry resends only the parts that got no
reply.

Topology refreshes are paced. Error paths only request a refresh, the
requests are merged, and the refresh runs once when it is due. A refresh
keeps the connections of the nodes that stay in the cluster. The new
topology_refresh_min_interval argument sets the minimum time between
error-triggered refreshes. The default is 1 second.

New commands:

- Set member expiration: sexpire, spexpire, sexpireat, spexpireat,
  sttl, spttl, sexpiretime, spexpiretime, spersist and saddex.
- Sorted sets: zmove, bzmove and zmovemember.
- BACKUP (Redis 8.10): backup_start, backup_status, backup_list,
  backup_seal, backup_abort and backup_cleanup.
- bitrangeintarray, the BLESS family (bless_get, bless_set,
  bless_clear, bless_scan) and a CLIENT LIST iterator.
- hybrid_search(explain_score=True) for FT.HYBRID, and CELL_SIZE
  for CMS.INITBYDIM and CMS.INITBYPROB.

Connection resilience:

When the protocol is not set explicitly and a server or proxy rejects
HELLO, the client now falls back to RESP2 instead of raising.

Retry takes a new optional is_retryable checker. Pass
redis.retry.is_retryable_connect_error to fail fast when a Unix socket
path does not exist, instead of retrying with backoff.

Security hardening:

OCSP validation is stricter. The response must be bound to the
certificate being validated and signed by a signer that chains to the
issuer. A delegated responder must not be expired, validity times are
compared in UTC, and an unauthorized response fails closed. Credentials
are redacted from pipeline and cluster routing error messages, and lock
tokens use uuid4.

Python support:

This release drops Python 3.10, which has reached end of life, and adds
Python 3.15.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../python/{python3-redis_8.1.0.bb => python3-redis_8.2.0.bb}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-redis_8.1.0.bb => python3-redis_8.2.0.bb} (86%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-redis_8.1.0.bb b/meta-python/recipes-devtools/python/python3-redis_8.2.0.bb
similarity index 86%
rename from meta-python/recipes-devtools/python/python3-redis_8.1.0.bb
rename to meta-python/recipes-devtools/python/python3-redis_8.2.0.bb
index 286c4b6f4a..cd8b6d17dd 100644
--- a/meta-python/recipes-devtools/python/python3-redis_8.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-redis_8.2.0.bb
@@ -7,7 +7,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=609ded3add9111c4c6e102f1d421d3f8"
 # Prefix archive to avoid clashing with the main redis archives
 PYPI_ARCHIVE_NAME_PREFIX = "pypi-"
 
-SRC_URI[sha256sum] = "6e1a19beef9225c83efd689c7e6b7da2d5215b1f42cd13b7fc3714d0a09c7b25"
+SRC_URI[sha256sum] = "58b1493d83ba8f0e3ffe6bd781194ca5c01c91267ae03d29c1087b0b3c7d79c9"
 
 inherit pypi python_hatchling