ZRANGEBYSCORE now supports open intervals, prefixing double values with a open paren. Added ZCOUNT that can count the elements inside an interval of scores, this supports open intervals too

This commit is contained in:
antirez
2010-02-07 21:52:35 +01:00
parent 3a3978b10b
commit f44dd42872
3 changed files with 75 additions and 22 deletions

View File

@ -101,6 +101,7 @@ static struct redisCommand cmdTable[] = {
{"zremrangebyscore",4,REDIS_CMD_INLINE},
{"zrange",-4,REDIS_CMD_INLINE},
{"zrangebyscore",-4,REDIS_CMD_INLINE},
{"zcount",4,REDIS_CMD_INLINE},
{"zrevrange",-4,REDIS_CMD_INLINE},
{"zcard",2,REDIS_CMD_INLINE},
{"zscore",3,REDIS_CMD_BULK},