多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## zCount ##### *Description* Returns the *number* of elements of the sorted set stored at the specified key which have scores in the range \[start,end\]. Adding a parenthesis before `<span class="calibre12">start</span>` or `<span class="calibre12">end</span>` excludes it from the range. +inf and -inf are also valid limits. 返回key对应的有序集合中介于min和max间的元素的个数。 ##### *Parameters* *key* *start*: string *end*: string ##### *Return value* *LONG* the size of a corresponding zRangeByScore. ##### *Example* ``` <pre class="calibre9">$redis->zAdd('key', 0, 'val0'); $redis->zAdd('key', 2, 'val2'); $redis->zAdd('key', 10, 'val10'); $redis->zCount('key', 0, 3); /* 2, corresponding to array('val0', 'val2') */ ``` ##