4 Lessons Completed
0 Questions Solved
Posted in How to use Kredis with Rails Discussion
Will someone please tell me the difference between a set and unique_list?
My understanding is that when a user logs on, they are added to the online:users set. I don't know how to handle the following scenario:
- user signs in on one device
- then user signs in on another device
- then user logs out on the first device
- the :user_id would be removed from the online:users set
- now on the 2nd device, even though user is still signed in here, he wouldn't receive further notifications since his id has been removed from online:users set
How do you address this scenario?