Redis Hget 命令

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

Redis Hget 命令用于返回哈希表中指定字段的值。

语法

redis 127.0.0.1:6379> HGET KEY_NAME FIELD_NAME 

返回值

返回给定字段的值。如果给定的字段或 key 不存在时,返回 nil 。

实例

实例1:字段存在

redis> HSET site redis redis.com
(integer) 1

redis> HGET site redis
"redis.com"

实例2:字段不存在

redis> HGET site mysql
(nil)

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

The Intersectional Internet

The Intersectional Internet

Safiya Umoja Noble、Brendesha M. Tynes / Peter Lang Publishing / 2016

From race, sex, class, and culture, the multidisciplinary field of Internet studies needs theoretical and methodological approaches that allow us to question the organization of social relations that ......一起来看看 《The Intersectional Internet》 这本书的介绍吧!

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码

URL 编码/解码

URL 编码/解码

URL 编码/解码

RGB CMYK 转换工具

RGB CMYK 转换工具

RGB CMYK 互转工具