I want to display leaders board for the users who are earning more points from two different games.
I am storing user scores as per games using redis's sorted sets, How I can get intersect on these games sorted sets to display common leaderborad.
I want to display leaders board for the users who are earning more points from two different games.
I am storing user scores as per games using redis's sorted sets, How I can get intersect on these games sorted sets to display common leaderborad.
Copyright © 2021 Jogjafile Inc.
This sounds like a job for
ZINTERSTORE
:Since there is no
AVG
aggregate subcommand, you'll have to divide the resultant scores to obtain that.