In my app I use some lists (for example: name, points, date) and save them in a Redis CloudDB. So far everything works.
StoreValue, GetValue sometimes take a little longer. If several users access the CloudDB at the same time, there are problems. How can I ensure that access to the database only works when it is not in use?
TAG: Database_locked = false or true.
How can I solve that when you click on the “save” button the application waits until the value under Database_locked = true?