Lua script execution is atomic in Redis.
https://redis.io/commands/eval#atomicity-of-scripts
> Redis guarantees that a script is executed in an atomic way: no other script or Redis command will be executed while a script is being executed.
https://redis.io/commands/eval#atomicity-of-scripts
> Redis guarantees that a script is executed in an atomic way: no other script or Redis command will be executed while a script is being executed.