💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 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 */ ``` ##