事务的实现
一个事务从开始到结束通常会经历以下三个阶段:
事务开始。
命令入队。
事务执行。
本节接下来的内容将对这三个阶段进行介绍, 说明一个事务从开始到结束的整个过程。
事务开始
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(保...
Pub/Sub
SUBSCRIBE, UNSUBSCRIBE and PUBLISH implement the Publish/Subscribe messaging paradigm(范例) where (citing Wikipedia) senders (publishers) are not programmed to send their messages to specifi...
Request/Response protocols and RTT
Redis is a TCP server using the client-server model and what is called a Request/Response protocol.
请求流程
This means that usually a request is accomplished(完成) ...