What can the discard command in redis transaction do?

Alibaba cloud Q & A 2022-02-13 08:31:28 阅读数:99

discard command redis transaction

Redis In the transaction DISCARD What can commands do ?

Take the answer 1:

By calling DISCARD, The client can clear the transaction queue , And give up the execution of the transaction , And the client will exit from the transaction state .

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