a lot of lines come to my method, page number and page size, when I worked with the postgres database everything was simple - I created a request using Spring data jpa, which returned the desired result to me. I can't do that with Redis. I store the values ??as a hash like my
key-> number, field-> one -value-> some serialized object.
Back to the parameters of the method, my method receives a lot of lines, page number and page size. I have to get the page I want from these elements (lines), I don't know how. I had an idea that first sort the set of lines that come to me, then select those that should be in my page and pass them to the hmget function, like fields, only the problem is that some lines (fields) may not be missing in the radish and I will return fewer pages than requested, what can I do?
P.S If you are too lazy to read this or I did not understand the problem, then here is the question: What are the ways of pagination in redis, where can I pass in the parameters Set , page, size, sort?
question from:https://stackoverflow.com/questions/66052504/pagination-in-redis