redis MULTI command


  Translation results:

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 commandsyntax

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 commandexample

redis> MULTI            # 标记事务开始
OK
redis> INCR user_id     # 多条命令按顺序入队
QUEUED
redis> INCR user_id
QUEUED
redis> INCR user_id
QUEUED
redis> PING
QUEUED
redis> EXEC             # 执行
1) (integer) 1
2) (integer) 2
3) (integer) 3
4) PONG

Popular Recommendations

Home

Videos

Q&A