Redis Transactions: EXEC
Description
Redis EXEC command is used to execute all previously queued commands in a transaction and restores the connection state to normal.
Syntax:
EXEC
Available since
1.2.0.
Return Value
Array reply, each element being the reply to each of the commands in the atomic transaction.
Return Value Type
Array
Example:
127.0.0.1:6379> MULTI OK 127.0.0.1:6379> INCR test QUEUED 127.0.0.1:6379> INCR test1 QUEUED 127.0.0.1:6379> EXEC 1) (integer) 3 2) (integer) 3
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework