Redis Hget 命令
Redis 教程
· 2019-03-07 09:11:27
Redis Hget 命令用于返回哈希表中指定字段的值。
语法
redis Hget 命令基本语法如下:
redis 127.0.0.1:6379> HGET KEY_NAME FIELD_NAME
可用版本
>= 2.0.0
返回值
返回给定字段的值。如果给定的字段或 key 不存在时,返回 nil 。
实例
# 字段存在 redis> HSET site redis redis.com (integer) 1 redis> HGET site redis "redis.com" # 字段不存在 redis> HGET site mysql (nil)
点击查看所有 Redis 教程 文章: https://www.codercto.com/courses/l/33.html
Algorithms
Robert Sedgewick、Kevin Wayne / Addison-Wesley Professional / 2011-3-19 / USD 89.99
Essential Information about Algorithms and Data Structures A Classic Reference The latest version of Sedgewick,s best-selling series, reflecting an indispensable body of knowledge developed over the ......一起来看看 《Algorithms》 这本书的介绍吧!