Effective Session Locking Practices?

Can anybody list some effective ways to session lock in datastore modules? I have no plans on using ProfileService (or any other open-source datastore module), and prefer my own wrapper that I wrote. I don’t really need session locking as of now but I’d like to write some notes on it for future reference if needed. Thanks.

For reference, my module is designed similarly to ProfileService in the sense that data is stored as a dictionary for each player.

Use UpdateAsync over SetAsync and use pcall and dont overflow

I am talking about session locking, not reading/writing directly.

Idk what you mean by session locking