langiac
langiac

Reputation: 347

Limit min max in function zrangbycore in redis python?

In Python have function zrangebyscore:

[zrangebyscore(self, name, min, max, start=None, num=None,withscores=False, score_cast_func=float)]

I want to get all element in sort set have score > min and no have limit max how do this work?

Upvotes: 0

Views: 2515

Answers (1)

Manu Manjunath
Manu Manjunath

Reputation: 6421

Specify min as required min score. Specify max as infinity.

You may want to know how to pass infinity to redis from python.

Upvotes: 1

Related Questions