Redis DEL 命令

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

Redis DEL 命令用于删除已存在的键。不存在的 key 会被忽略。

语法

redis 127.0.0.1:6379> DEL KEY_NAME

返回值

被删除 key 的数量。

实例

实例1: 当 key 不存在时

127.0.0.1:6379> exists domain
(integer) 0
127.0.0.1:6379> del domain
(integer) 0

实例2: 当 key 存在时

127.0.0.1:6379> set domain www.codercto.com
OK
127.0.0.1:6379> del domain
(integer) 1

查看更多 Redis key 命令

Coding the Matrix

Coding the Matrix

Philip N. Klein / Newtonian Press / 2013-7-26 / $35.00

An engaging introduction to vectors and matrices and the algorithms that operate on them, intended for the student who knows how to program. Mathematical concepts and computational problems are motiva......一起来看看 《Coding the Matrix》 这本书的介绍吧!

HTML 压缩/解压工具

HTML 压缩/解压工具

在线压缩/解压 HTML 代码

SHA 加密

SHA 加密

SHA 加密工具

HEX CMYK 转换工具

HEX CMYK 转换工具

HEX CMYK 互转工具