mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add ZRemRangeByLex.
This commit is contained in:
@ -170,6 +170,7 @@ type Cmdable interface {
|
||||
ZRem(key string, members ...interface{}) *IntCmd
|
||||
ZRemRangeByRank(key string, start, stop int64) *IntCmd
|
||||
ZRemRangeByScore(key, min, max string) *IntCmd
|
||||
ZRemRangeByLex(key, min, max string) *IntCmd
|
||||
ZRevRange(key string, start, stop int64) *StringSliceCmd
|
||||
ZRevRangeWithScores(key string, start, stop int64) *ZSliceCmd
|
||||
ZRevRangeByScore(key string, opt ZRangeBy) *StringSliceCmd
|
||||
@ -1468,6 +1469,12 @@ func (c *cmdable) ZRemRangeByScore(key, min, max string) *IntCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *cmdable) ZRemRangeByLex(key, min, max string) *IntCmd {
|
||||
cmd := NewIntCmd("zremrangebylex", key, min, max)
|
||||
c.process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *cmdable) ZRevRange(key string, start, stop int64) *StringSliceCmd {
|
||||
cmd := NewStringSliceCmd("zrevrange", key, start, stop)
|
||||
c.process(cmd)
|
||||
|
Reference in New Issue
Block a user