Redis Zlexcount 命令
Redis 教程
· 2019-03-07 21:13:38
Redis Zlexcount 命令在计算有序集合中指定字典区间内成员数量。
语法
redis Zlexcount 命令基本语法如下:
redis 127.0.0.1:6379> ZLEXCOUNT KEY MIN MAX
可用版本
>= 2.8.9
返回值
指定区间内的成员数量。
实例
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 教程 文章: https://codercto.com/courses/l/33.html
Rework
Jason Fried、David Heinemeier Hansson / Crown Business / 2010-3-9 / USD 22.00
"Jason Fried and David Hansson follow their own advice in REWORK, laying bare the surprising philosophies at the core of 37signals' success and inspiring us to put them into practice. There's no jarg......一起来看看 《Rework》 这本书的介绍吧!