Skip to content

cluster scan returns a dict as cursor #191

Open
@amirreza8002

Description

@amirreza8002

hi
so the cluster client runs this function on the return value of scan https://github.com/valkey-io/valkey-py/blob/main/valkey/cluster.py#L56

which would look something like this in a test example:

cursor={'127.0.0.1:7000': 0, '127.0.0.1:7001': 0, '127.0.0.1:7002': 0}
result=['foo2', 'foo3', 'foo1']

i understand that this is intended behaviour, but am wondering if this is necessary
valkey itself returns a single number

but if it's here to stay, we should probably document it

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions