Redis Hvals 命令
Redis 教程
· 2019-03-07 11:43:32
Redis Hvals 命令返回哈希表所有域(field)的值。
语法
redis Hvals 命令基本语法如下:
redis 127.0.0.1:6379> HVALS KEY_NAME FIELD VALUE
可用版本
>= 2.0.0
返回值
一个包含哈希表中所有域(field)值的列表。 当 key 不存在时,返回一个空表。
实例
redis 127.0.0.1:6379> HSET myhash field1 "foo" (integer) 1 redis 127.0.0.1:6379> HSET myhash field2 "bar" (integer) 1 redis 127.0.0.1:6379> HVALS myhash 1) "foo" 2) "bar" # 空哈希表/不存在的key redis 127.0.0.1:6379> EXISTS not_exists (integer) 0 redis 127.0.0.1:6379> HVALS not_exists (empty list or set)
点击查看所有 Redis 教程 文章: https://codercto.com/courses/l/33.html
Inside Larry's and Sergey's Brain
Richard Brandt / Portfolio / 17 Sep 2009 / USD 24.95
You’ve used their products. You’ve heard about their skyrocketing wealth and “don’t be evil” business motto. But how much do you really know about Google’s founders, Larry Page and Sergey Brin? Inside......一起来看看 《Inside Larry's and Sergey's Brain》 这本书的介绍吧!