Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent format of command brpop/blpop return results when using protocol #3452

Closed
zs-neo opened this issue Dec 6, 2024 · 0 comments
Closed

Comments

@zs-neo
Copy link

zs-neo commented Dec 6, 2024

Version:
5.0.8

Platform:
Python 3.10 on Ubuntu 22.04

Description:
Different result formats when using different protocols;

import redis
rds = redis.RedisCluster(host='127.0.0.1', port=7023, password='myredis', protocol=2)
rds.lpush('test_list', 'test task')
print(rds.brpop('test_list'))

rds = redis.RedisCluster(host='127.0.0.1', port=7023, password='myredis', protocol=3)
rds.lpush('test_list', 'test task')
print(rds.brpop('test_list'))

# Different result formats when using different protocols
# (b'test_list', b'test task')
# [b'test_list', b'test task']

When i use redis-py-cluster==2.1.3, i get (b'test_list', b'test task').
Brpop and blpop seem to have this problem, should we keep the tuple format?

@zs-neo zs-neo closed this as completed Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant