mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add ZLexCount
This commit is contained in:
@ -159,6 +159,7 @@ type Cmdable interface {
|
||||
ZIncrXX(key string, member Z) *FloatCmd
|
||||
ZCard(key string) *IntCmd
|
||||
ZCount(key, min, max string) *IntCmd
|
||||
ZLexCount(key, min, max string) *IntCmd
|
||||
ZIncrBy(key string, increment float64, member string) *FloatCmd
|
||||
ZInterStore(destination string, store ZStore, keys ...string) *IntCmd
|
||||
ZRange(key string, start, stop int64) *StringSliceCmd
|
||||
@ -1352,6 +1353,12 @@ func (c *cmdable) ZCount(key, min, max string) *IntCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *cmdable) ZLexCount(key, min, max string) *IntCmd {
|
||||
cmd := NewIntCmd("zlexcount", key, min, max)
|
||||
c.process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *cmdable) ZIncrBy(key string, increment float64, member string) *FloatCmd {
|
||||
cmd := NewFloatCmd("zincrby", key, increment, member)
|
||||
c.process(cmd)
|
||||
|
Reference in New Issue
Block a user