I save user ids to `session[:user_id]` from database when user logs in . What should I do to find out number of logged in users?

I use **`ActionDispatch::Session::CacheStore`** for session storage.

Please guide me the correct way to achieve my objective.