小白教程
所有教程
关于
Search
108.162.216.253
108.162.216.253
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Hashes hkeys”的源代码
本页内容
上一节:
Hashes_hincrbyfloat
下一节:
Hashes_hlen
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:HKEYS key}}[[Category:redis hashes|7]] = Redis Hkeys 命令 = [[redis hashes|Redis 哈希(Hash)]] Redis Hkeys 命令用于获取哈希表中的所有域(field)。 === 语法 === redis Hkeys 命令基本语法如下: <sample title="" desc="" lang="redis" hererun="1"> redis 127.0.0.1:6379> HKEYS key </sample> === 可用版本 === >= 2.0.0 === 返回值 === 包含哈希表中所有域(field)列表。 当 key 不存在时,返回一个空列表。 == <sample title="" desc="" lang="redis" hererun="1"> 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> HKEYS myhash 1) "field1" 2) "field2" </sample> [[redis hashes|Redis 哈希(Hash)]]
返回至“
Hashes hkeys
”。
上一节:
Hashes_hincrbyfloat
下一节:
Hashes_hlen