Hello Guys,
I've an API that access redis key and updates that key. I want to make that no request access that key while updating. I'm using RAILS app.
I haven't done much with Redis but it looks like it does it
@mgiambance I don't mean use it as transaction, i want to lock the key while updating, I don't want any request to access the key before update is finished.
Kevin
i write code
Redis is single-threaded. Always has been, probably always will be.
You shouldn't need to use a transaction if you're doing a single command: SET HSET, GET, etc.
Transactions are useful for multiple commands that need to all succeed.