Redis Hexists 命令

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

Redis Hexists 命令用于查看哈希表的指定字段是否存在。

语法

redis 127.0.0.1:6379> HEXISTS KEY_NAME FIELD_NAME 

返回值

如果哈希表含有给定字段,返回 1 。 如果哈希表不含有给定字段,或 key 不存在,返回 0 。

实例

redis 127.0.0.1:6379> HSET myhash field1 "foo"
(integer) 1
redis 127.0.0.1:6379> HEXISTS myhash field1
(integer) 1
redis 127.0.0.1:6379> HEXISTS myhash field2
(integer) 0

查看更多 Redis 哈希(Hash)命令

Discrete Mathematics and Its Applications

Discrete Mathematics and Its Applications

Kenneth H Rosen / McGraw-Hill Science/Engineering/Math / 2003-04-22 / USD 132.81

Discrete Mathematics and its Applications is a focused introduction to the primary themes in a discrete mathematics course, as introduced through extensive applications, expansive discussion, and deta......一起来看看 《Discrete Mathematics and Its Applications》 这本书的介绍吧!

JSON 在线解析

JSON 在线解析

在线 JSON 格式化工具

图片转BASE64编码

图片转BASE64编码

在线图片转Base64编码工具

正则表达式在线测试

正则表达式在线测试

正则表达式在线测试