NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## hLen ##### *Description* Returns the length of a hash, in number of items 取得HASH表的长度。 ##### *Parameters* *key* ##### *Return value* *LONG* the number of items in a hash, `<span class="calibre12">FALSE</span>` if the key doesn't exist or isn't a hash. ##### *Example* ``` <pre class="calibre16">$redis->delete('h') $redis->hSet('h', 'key1', 'hello'); $redis->hSet('h', 'key2', 'plop'); $redis->hLen('h'); /* returns 2 */ ``` ##