redis transaction和connection命令操作

/*********** 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
since: 1.2.0


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
since: 2.2.0


/************** redis connection命令操作 ***********/

1.验证服务器密码
AUTH password
summary: Authenticate to the server
since: 1.0.0


2.显示指定的message信息
ECHO message
summary: Echo the given string
since: 1.0.0


3.判断服务是否ping通
PING -
summary: Ping the server
since: 1.0.0
4.关闭连接并退出
QUIT -
summary: Close the connection
since: 1.0.0


5.选择redis下的数据库
SELECT index
summary: Change the selected database for the current connection
since: 1.0.0



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值