multi

abbr.(Latin prefix=many or much) (Latin prefix) many; Von Willebrand factor multimer analysis Hemophilia factor multimer analysis (code); [Calculation][Microsoft]Check selection;[Civil]Multi-level pipe network system;[Atmosphere]Multi-band image;[Machine]Multi-layer corrugated pipe

redis MULTI command syntax

Function: Mark the beginning of a transaction block.

Syntax: MULTI

Description: Multiple commands in the transaction block will be put into a queue in order, and finally EXEC Commands are executed atomically.

Available versions: >= 1.2.0

Time complexity: O(1).

Return: Always returns OK.

redis MULTI command example

redis> MULTI            # 標(biāo)記事務(wù)開始
OK
redis> INCR user_id     # 多條命令按順序入隊
QUEUED
redis> INCR user_id
QUEUED
redis> INCR user_id
QUEUED
redis> PING
QUEUED
redis> EXEC             # 執(zhí)行
1) (integer) 1
2) (integer) 2
3) (integer) 3
4) PONG