educative.io

Educative

Sliding Window with Counters step by step

So in Sliding Window with Counters we are not using sorted set right? is yes can you please describe what will be the workflow for when new api request comes what are the steps that will take place one by one.
2nd question
We are HashMap<userId, FrequencyCouterObject>
and FrequencyCouterObject contains HashMap<timestamp, counter>
I am assuming FrequencyCouterObject’s hashMap is saved in redis.
But I am confuse as redis is key value store what are you using as key and value to store FrequencyCouterObject?