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)命令

Web Standards Creativity

Web Standards Creativity

Andy Budd、Dan Rubin、Jeff Croft、Cameron Adams、Ethan Marcotte、Andy Clarke、Ian Lloyd、Mark Boulton、Rob Weychert、Simon Collison、Derek Featherstone / friends of ED / March 19, 2007 / $49.99

Book Description * Be inspired by 10 web design lessons from 10 of the world's best web designers * Get creative with cutting-edge XHTML, CSS, and DOM scripting techniques * Learn breathtakin......一起来看看 《Web Standards Creativity》 这本书的介绍吧!

图片转BASE64编码

图片转BASE64编码

在线图片转Base64编码工具

HSV CMYK 转换工具

HSV CMYK 转换工具

HSV CMYK互换工具