Redis Zlexcount 命令

更新时间: 2019-07-07 15:54

Redis Zlexcount 命令在计算有序集合中指定字典区间内成员数量。

语法

redis Zlexcount 命令基本语法如下:

redis 127.0.0.1:6379> ZLEXCOUNT KEY MIN MAX

返回值

指定区间内的成员数量。

实例

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

查看更多 Redis 有序集合(sorted set)命令

Out of Control

Out of Control

Kevin Kelly / Basic Books / 1995-4-14 / USD 22.95

Out of Control is a summary of what we know about self-sustaining systems, both living ones such as a tropical wetland, or an artificial one, such as a computer simulation of our planet. The last chap......一起来看看 《Out of Control》 这本书的介绍吧!

SHA 加密

SHA 加密

SHA 加密工具

XML 在线格式化

XML 在线格式化

在线 XML 格式化压缩工具