Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

zrevrangebyscore in aioredis in different than in redis #1393

@91DarioDev

Description

@91DarioDev

Describe the bug

I had my code running with redis-py in the version sync.
I added asycn/await everywhere and replaced the import of redis with aioredis.

zrevrangebyscore after that started returning no results, empty list, despite with redis-py sync it was returning values correctly!

now my code was with async/await so I tried to use

from redis import asyncio as aioredis

And magically zrevrangebyscore is returning results as expected again.

So I think there is some difference between the version implemented in redis-py and aioredis. What is the difference?

Anyways I fixed using redis-py in his async version.

aioredis version 2.0.1
redis-py version 4.3.4

To Reproduce

use zrevrangebyscore in aioredis and redis

Expected behavior

working the same way between aioredis and redis-py

Logs/tracebacks

no errors just empty list

Python Version

$ python --version
3.10

aioredis Version

$ python -m pip show aioredis
2.0.1

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions