I have used ZADD
command to insert a bunch of IDs with their corresponding scores into a redis instance. The score is basically a timestamp at which the ZADD
is called.
Now I want to retrieve a list of IDs whose score is bigger than the timestamp of the moment five minutes ago.
The client is written in java and I am using lettuce as the redis client library.
I have a few questions:
- Here is a link to the documentation of
zrangebyscore
on redis website (https://redis.io/commands/zrangebyscore). However on the lettuce website the counterpart is marked as 'Deprecated'. Is it a discrepancy of documentations, or lettuce has retired the support of this API?
- I want to be able to retrieve a list of ID whose score is bigger than a certain number N, but I do not care about the upper-end.
In lettuce's documentation this API zrange
seems to be ideal for my purpose. However what sopt I can use to express that I do not care about the upper-bound? The documentation is not clear about this.