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

zunionstore/zinterstore works on sets, why doesn't the command doc mention it? #172

Open
sgon00 opened this issue Mar 3, 2019 · 0 comments

Comments

@sgon00
Copy link

sgon00 commented Mar 3, 2019

In https://redis.io/commands/zunionstore and https://redis.io/commands/zinterstore, it doesn't mention a single word about I can use set as one of the key too. Why is that? Is this not recommended?

> ZADD zset1 1 "one"
> SADD sset "two"
> ZUNIONSTORE out 2 zset1 sset
> ZRANGE out 0 -1 WITHSCORES
one
1
two
1

Thanks a lot.

PS: I just learnt I can do this today. If it's OK to be used like this, I need to redesign my entire redis db... Because at the first time I read redis.io, I don't find anywhere mention this. I am wondering If this feature is not recommended (deprecated) and will be removed in the future or not. Cheers.

@sgon00 sgon00 changed the title Doc: zunionstore works on sets too, why doesn't the command doc mention it? zunionstore/zinterstore works on sets, why doesn't the command doc mention it? Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant