Redis Hlen 命令

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

Redis Hlen 命令用于获取哈希表中字段的数量。

语法

redis 127.0.0.1:6379> HLEN KEY_NAME 

返回值

哈希表中字段的数量。 当 key 不存在时,返回 0 。

实例

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> HLEN myhash
(integer) 2

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

Algorithms in C, Parts 1-4

Algorithms in C, Parts 1-4

Robert Sedgewick / Addison-Wesley Professional / 1997-9-27 / USD 89.99

"This is an eminently readable book which an ordinary programmer, unskilled in mathematical analysis and wary of theoretical algorithms, ought to be able to pick up and get a lot out of.." - Steve Sum......一起来看看 《Algorithms in C, Parts 1-4》 这本书的介绍吧!

CSS 压缩/解压工具

CSS 压缩/解压工具

在线压缩/解压 CSS 代码

SHA 加密

SHA 加密

SHA 加密工具

Markdown 在线编辑器

Markdown 在线编辑器

Markdown 在线编辑器