Redis EXISTS 命令

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

Redis EXISTS 命令用于检查给定 key 是否存在。

语法

redis 127.0.0.1:6379> EXISTS KEY_NAME

返回值

若 key 存在返回 1 ,否则返回 0 。

实例

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

查看更多 Redis key 命令

Beginning iPhone and iPad Web Apps

Beginning iPhone and iPad Web Apps

Chris Apers、Daniel Paterson / Apress / 2010-12-15 / USD 39.99

It seems that everyone and her sister has developed an iPhone App—everyone except you, the hard-working web professional. And now with the introduction of the iPad, you may even feel farther behind. B......一起来看看 《Beginning iPhone and iPad Web Apps》 这本书的介绍吧!

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码

HEX CMYK 转换工具

HEX CMYK 转换工具

HEX CMYK 互转工具

HEX HSV 转换工具

HEX HSV 转换工具

HEX HSV 互换工具