支持情况
Available since 2.6.0.
Time complexity(复杂度): Depends on the script that is executed.
Introduction to EVAL
EVAL and EVALSHA are used to evaluate scripts using the Lua interpreter(解释器) built...
事务的实现
一个事务从开始到结束通常会经历以下三个阶段:
事务开始。
命令入队。
事务执行。
本节接下来的内容将对这三个阶段进行介绍, 说明一个事务从开始到结束的整个过程。
事务开始
MULTI 命令的执行标志着事务的开始:
redis> MULTI
OK
MULTI 命令可以将执行该命令的客户端从非事务状...
Transactions
MULTI, EXEC, DISCARD and WATCH are the foundation of transactions in Redis.
事务保证了什么
They allow the execution of a group of commands in a single step, with two important guarantees(保...