mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 09:17:10 +08:00
optimize range by score
This commit is contained in:
@@ -24,6 +24,8 @@ type ScoreBorder struct {
|
||||
Exclude bool
|
||||
}
|
||||
|
||||
// if max.greater(score) then the score is within the upper border
|
||||
// do not use min.greater()
|
||||
func (border *ScoreBorder)greater(value float64)bool {
|
||||
if border.Inf == negativeInf {
|
||||
return false
|
||||
|
Reference in New Issue
Block a user