MyGit

v5.0.0b2

redis/redis-py

版本发布时间: 2023-04-24 23:07:07

redis/redis-py最新发布版本:v5.0.9(2024-07-30 22:11:09)

Changes

This release includes only support for RESP3, it should be treated as a beta. Please note response types change for those using RESP3 - meaning there breaking changes. Today this includes support for the following:

The following are not yet implemented:

RESP3 support introduces two different ways to enable a RESP3 redis connection, when your redis server supports it.

  1. redis_url has been updated to match the uri specification meaning one can now connect by:
import redis
r = redis.Redis.from_url("redis://localhost:6379?protocol=3")
r.ping()
  1. One can pass protocol=3 into any existing connection object eg:
from redis.asyncio import  Redis
r = Redis(host="localhost", port=6379, protocol=3)
r.ping()

相关地址:原始地址 下载(tar) 下载(zip)

查看:2023-04-24发行的版本