多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 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 */ ``` ##