In the website I am working on, there is an search API. I want to log all the activities with Redis but I have no clue how to store such data into redis. There should be search query and count, and it can be ordered by count to see the most searched queries. I would be thankful if you can show me the proper way.
Share
Use a sorted set.