Answer the question
In order to leave comments, you need to log in
How to use Atomic Locks in Redis?
There is a set of videos. [a,b,c,d]
There are multiple users. [1,2,3]
If a user made a request to receive a video, then within time N it should be returned only to him, and not to other users.
I see an option to cache an associative array that which user has taken, and make a selection based on it, but perhaps there is a more beautiful solution? I looked in the direction of Atomic Locks but did not fully understand what it was for
Answer the question
In order to leave comments, you need to log in
How to use Atomic Locks in Redis?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question