friends SADD users:1:friends 5 SADD users:5:friend_of 1 ... # Get user 5 friends SMEMBERS users:5:friends # Get user 5 mutual friends SCARD users:5:friends users:5:friend_of # Get common friens of user 5 and 7 SCARD users:5:friends users:7:friends # Are user 7 friend of user 5? SISMEMBER users:5:friends 7