Answer the question
In order to leave comments, you need to log in
How to store last user activity data in Redis
Hello!
How to store last user activity data in Redis?
Like "key_user_id" "time" or like a hash?
That is, with any action on the site, a record of the form "user id" - "time" is updated
thanks!
Answer the question
In order to leave comments, you need to log in
if you only need to know the time of the last activity, then store it like this:
the key users_last_activity:user_id is the value
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question