/*********** redis transaction命令操作 **********/
1.
discard -
summary: discard all commands issued after multi
since: 2.0.0
exec -
summary: execute all commands issued after multi
since: 1.2.0
multi -
summary: mark the start of a transaction block
unwatch -
summary: forget about all watched keys
since: 2.2.0
watch key [key ...]
summary: watch the given keys to determine execution of the multi/exec block
/************** redis connection命令操作 ***********/
1.验证服务器密码
auth password
summary: authenticate to the server
since: 1.0.0
2.显示指定的message信息
echo message
summary: echo the given string
3.判断服务是否ping通
ping -
summary: ping the server
4.关闭连接并退出
quit -
summary: close the connection
5.选择redis下的数据库
select index
summary: change the selected database for the current connection