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

ltrim Command Behavior is Inconsistent with Redis #400

Closed
mdjs147 opened this issue May 20, 2024 · 1 comment · Fixed by #402
Closed

ltrim Command Behavior is Inconsistent with Redis #400

mdjs147 opened this issue May 20, 2024 · 1 comment · Fixed by #402
Assignees
Labels
API bug Something isn't working

Comments

@mdjs147
Copy link

mdjs147 commented May 20, 2024

Describe the bug

LPUSH abc a0 a1 a2 a3 a4 a5
6
llen abc
6
lrange abc 0 5
a5
a4
a3
a2
a1
a0
ltrim abc 6 -1
OK
llen abc
1
lrange abc 0 1
a0

Steps to reproduce the bug

garnet

LPUSH abc a0 a1 a2 a3 a4 a5
6
llen abc
6
lrange abc 0 5
a5
a4
a3
a2
a1
a0
ltrim abc 6 -1
OK
llen abc
1
lrange abc 0 1
a0

redis

LPUSH abc a0 a1 a2 a3 a4 a5
6
llen abc
6
lrange abc 0 5
a5
a4
a3
a2
a1
a0
ltrim abc 6 -1
OK
llen abc
0

Expected behavior

No response

Screenshots

No response

Release version

1.0.10

IDE

No response

OS version

No response

Additional context

No response

@TalZaccai TalZaccai self-assigned this May 21, 2024
@TalZaccai
Copy link
Contributor

Thank you for reporting this bug! Posting a fix shortly :)

@TalZaccai TalZaccai added bug Something isn't working API labels May 21, 2024
@TalZaccai TalZaccai mentioned this issue May 21, 2024
@TalZaccai TalZaccai linked a pull request May 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants