I have a sorted set, SortedSet1 = "token"=>"score"
I have a list, List1 = "token"=>"username"
Now, I want to have a record with JSON string value like-
e.g> "token"=>"{name:username, score: score}"
so that I can broadcast a leaderboard.
How to JOIN these two sets ? Or is there any chance to have JOIN of two lists or two sets ?
redis is simply a key/value store. you cannot do something like sql-joins. you need to do that by yourself (use underscore.js or lodash for merging).
there is also something that is called LUA-scripting in redis. maybe that will work for you, but i have never worked with it, so i probably cannot help you there: http://redis.io/commands/eval