|
|
@ -636,22 +636,22 @@ func (cs clusterStore) ZrevrangebyscoreWithScoresAndLimit(key string, start, sto
|
|
|
|
return node.ZrevrangebyscoreWithScoresAndLimit(key, start, stop, page, size)
|
|
|
|
return node.ZrevrangebyscoreWithScoresAndLimit(key, start, stop, page, size)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (cs clusterStore) Zscore(key string, value string) (int64, error) {
|
|
|
|
func (cs clusterStore) Zrevrank(key, field string) (int64, error) {
|
|
|
|
node, err := cs.getRedis(key)
|
|
|
|
node, err := cs.getRedis(key)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return node.Zscore(key, value)
|
|
|
|
return node.Zrevrank(key, field)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (cs clusterStore) Zrevrank(key, field string) (int64, error) {
|
|
|
|
func (cs clusterStore) Zscore(key string, value string) (int64, error) {
|
|
|
|
node, err := cs.getRedis(key)
|
|
|
|
node, err := cs.getRedis(key)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return node.Zrevrank(key, field)
|
|
|
|
return node.Zscore(key, value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (cs clusterStore) getRedis(key string) (*redis.Redis, error) {
|
|
|
|
func (cs clusterStore) getRedis(key string) (*redis.Redis, error) {
|
|
|
|