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 命令

Introduction to Computer Science Using Python

Introduction to Computer Science Using Python

Dierbach, Charles / 2012-12 / $ 133.62

Introduction to Computer Science Using Python: A Computational Problem-Solving Focus introduces students to programming and computational problem-solving via a back-to-basics, step-by-step, objects-la......一起来看看 《Introduction to Computer Science Using Python》 这本书的介绍吧!

SHA 加密

SHA 加密

SHA 加密工具

正则表达式在线测试

正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具

HSV CMYK 转换工具

HSV CMYK互换工具