DEV Community

Discussion on: Atomicity in Redis operations

Collapse
 
kishanbsh profile image
Kishan B

Any thoughts on how to test the lua code?

Collapse
 
lucaspin profile image
Lucas Pinheiro

I mostly use redis-cli --eval as described here: redis.io/topics/rediscli#running-l.... You can even use a --ldb flag for debugging: redis.io/topics/ldb.

I also found redis-cli monitor
can also be quite helpful to make sure the EVAL commands you are executing are properly formed.