Redis HVALS 命令用于获取存储在键(key)处的哈希中的所有值。
返回值数组。
以下是Redis HVALS 命令的基本语法。
redis 127.0.0.1:6379> HVALS KEY_NAME FIELD VALUE
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"
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)