Redis Zcount 命令
Redis 教程
· 2019-03-07 20:27:35
Redis Zcount 命令用于计算有序集合中指定分数区间的成员数量。
语法
redis Zcount 命令基本语法如下:
redis 127.0.0.1:6379> ZCOUNT key min max
可用版本
>= 2.0.0
返回值
分数值在 min 和 max 之间的成员的数量。
实例
redis 127.0.0.1:6379> ZADD myzset 1 "hello" (integer) 1 redis 127.0.0.1:6379> ZADD myzset 1 "foo" (integer) 1 redis 127.0.0.1:6379> ZADD myzset 2 "world" 3 "bar" (integer) 2 redis 127.0.0.1:6379> ZCOUNT myzset 1 3 (integer) 4
点击查看所有 Redis 教程 文章: https://www.codercto.com/courses/l/33.html
Design and Analysis of Distributed Algorithms (Wiley Series on P
Nicola Santoro / Wiley-Interscience / 2006-10-27 / USD 140.95
This text is based on a simple and fully reactive computational model that allows for intuitive comprehension and logical designs. The principles and techniques presented can be applied to any distrib......一起来看看 《Design and Analysis of Distributed Algorithms (Wiley Series on P》 这本书的介绍吧!
URL 编码/解码
URL 编码/解码
Markdown 在线编辑器
Markdown 在线编辑器