Frage

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?

War es hilfreich?

Lösung

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

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top