YouTip LogoYouTip

Sorted Sets Zlexcount

# Redis Zlexcount Command # [ -- Learning More Than Just Technology, But Also Dreams!](#) * (javascript:void(0);) * (javascript:void(0);) * (javascript:void(0);) * (javascript:void(0)) Redis Tutorial (#)(#)(#)(#)(#) ## Redis Commands (#)(#)(#)(#)(#)(#)(#)(#)[Redis Pub/Sub](#)(#)(#)(#)(#)(#)(#) ## Redis Advanced Tutorial (#)(#)(#)(#)(#)(#)(#)(#) [](#)(#) (#)[](#) # Redis Zlexcount Command !(#)(#) The Redis Zlexcount command calculates the number of members in a sorted set within a specified lexicographical range. ### Syntax The basic syntax of the redis Zlexcount command is as follows: redis 127.0.0.1:6379> ZLEXCOUNT KEY MIN MAX ### Available Since >= 2.8.9 ### Return Value The number of members in the specified range. ### Example 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 !(#)(#)
← C Function UngetcC Function Sscanf β†’