Skip to content

LMOVE, BLMOVE return incorrect response #1776

Closed
@varunchopra

Description

@varunchopra

Version:
redis-py: 4.0.2
Redis server: 6.2.3 (enterprise)

Platform:
3.8.10, Ubuntu 20

Description:
According to the docs and the latest redis CLI, LMOVE and BLMOVE must return the value of the key that is being moved.

To repro:

> lmove x x LEFT RIGHT
"abc"

> blmove x x LEFT RIGHT 1
"abc"

However, these return bool on redis-py:

>>> r.lmove('x', 'x')
True

>>> r.blmove('x', 'x', timeout=1)
True

I believe these were erroneously added in RESPONSE_CALLBACKS in #1504 and the fix is to remove this.

@chayim Please let me know if I'm correct and I can create a PR as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions