alibaba / tair-py Goto Github PK
View Code? Open in Web Editor NEWA Python client of Tair based on redis-py
License: MIT License
A Python client of Tair based on redis-py
License: MIT License
必现的关键参数就是这个 decode_responses = True 时
def connect(self, db):
r = Tair.from_url(host=host, db=db, password=passwd, decode_responses=True)
必现bug,当连接 redis 时指定参数 decode_responses=True 时,如果使用 exhash 或 exzset 类型,读取时 100%报错
exhash 类型也有一样的 bug,只要指定了 decode_responses=True,必现
经过提工单(000B99A97C)核实,确实需要优化,让我来这边反馈下
希望 tair-py 也可以做下兼容,谢谢
tair==1.3.7
redis==5.0.1
堆栈日志
File "/Users/monster/local_documents/PycharmProjects/party-danmaku/venv/lib/python3.11/site-packages/tair/__init__.py", line 1, in <module>
from tair.client import Tair
File "/Users/monster/local_documents/PycharmProjects/party-danmaku/venv/lib/python3.11/site-packages/tair/client.py", line 3, in <module>
from tair.commands import TairCommands, set_tair_response_callback
File "/Users/monster/local_documents/PycharmProjects/party-danmaku/venv/lib/python3.11/site-packages/tair/commands.py", line 5, in <module>
from redis.client import bool_ok, int_or_none
ImportError: cannot import name 'int_or_none' from 'redis.client' (/Users/monster/local_documents/PycharmProjects/party-danmaku/venv/lib/python3.11/site-packages/redis/client.py)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.