What can the multi command in redis transaction do?

Alibaba cloud Q & A 2022-02-13 08:31:26 阅读数:71

multi command redis transaction

Redis In the transaction MULTI What can commands do ?




Take the answer 1:

MULTI Command to open a transaction , It always comes back OK. MULTI After performing , The client can continue to send any number of commands to the server , These orders will not be executed immediately , It's put in a queue , When EXEC When the command is called , All the commands in the queue will be executed .


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130831247706.html