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

Removing last element in a zset should remove the key itself (e.g. affects zrem + exists) #1189

Open
TysonAndre opened this issue Jun 24, 2022 · 0 comments

Comments

@TysonAndre
Copy link
Contributor

Similar to #927 but for zsets instead of hashes

In ioredis-mock, exists returns 1, but a real redis server would return 0

zremrangebyscore (etc) are also affected.

127.0.0.1:6379> zadd myset 1 key
(integer) 1
127.0.0.1:6379> exists myset
(integer) 1
127.0.0.1:6379> zrem myset key
(integer) 1
127.0.0.1:6379> exists myset
(integer) 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants