Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant