List to map

By task, meetings between users are generated once a day, and they must not overlap again.

link to the post where the code is provided (Is there a way to load a complex index from the database into redis?)

I wanted to improve the code so that I wouldn’t make a request to the database every time to check for matches, because the more users there are, the more load it will have.