Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
107 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...