小白教程
所有教程
关于
Search
172.70.100.156
172.70.100.156
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Sorted sets zlexcount”的源代码
本页内容
上一节:
Sorted_sets_zinterstore
下一节:
Sorted_sets_zrange
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:ZLEXCOUNT key min max}}[[Category:redis sorted sets|6]] = Redis Zlexcount 命令 = [[redis sorted sets|Redis 有序集合(sorted set)]] Redis Zlexcount 命令在计算有序集合中指定字典区间内成员数量。 === 语法 === redis Zlexcount 命令基本语法如下: <sample title="" desc="" lang="redis" hererun="1"> redis 127.0.0.1:6379> ZLEXCOUNT KEY MIN MAX </sample> === 可用版本 === >= 2.8.9 === 返回值 === 指定区间内的成员数量。 == <sample title="" desc="" lang="redis" hererun="1"> redis 127.0.0.1:6379> ZADD myzset 0 a 0 b 0 c 0 d 0 e (integer) 5 redis 127.0.0.1:6379> ZADD myzset 0 f 0 g (integer) 2 redis 127.0.0.1:6379> ZLEXCOUNT myzset - + (integer) 7 redis 127.0.0.1:6379> ZLEXCOUNT myzset [b [f (integer) 5 </sample> [[redis sorted sets|Redis 有序集合(sorted set)]]
返回至“
Sorted sets zlexcount
”。
上一节:
Sorted_sets_zinterstore
下一节:
Sorted_sets_zrange