Redis Discard 命令

更新时间: 2019-07-07 15:54

Redis Discard 命令用于取消事务,放弃执行事务块内的所有命令。

语法

redis Discard 命令基本语法如下:

redis 127.0.0.1:6379> DISCARD

可用版本

>= 2.0.0

返回值

总是返回 OK 。

实例

redis 127.0.0.1:6379> MULTI
OK

redis 127.0.0.1:6379> PING
QUEUED

redis 127.0.0.1:6379> SET greeting "hello"
QUEUED

redis 127.0.0.1:6379> DISCARD
OK

查看更多 Redis 事务命令

PHP and MySQL Web Development (3rd Edition) (Developer's Library

PHP and MySQL Web Development (3rd Edition) (Developer's Library

Luke Welling、Laura Thomson / Sams / 2004-09-29 / USD 49.99

We've taken the best and made it even better. The third edition of the best-selling PHP and MySQL Web Development has been updated to include material and code on MySQL 5, PHP 5 and on PHPs object mod......一起来看看 《PHP and MySQL Web Development (3rd Edition) (Developer's Library》 这本书的介绍吧!

在线进制转换器

在线进制转换器

各进制数互转换器

图片转BASE64编码

图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码