Issue with cache.entrySet(filter,compartor) #115
Replies: 2 comments 3 replies
-
Hi, are you using a limit filter? If so you need to make sure you make the call from the same context (thread/method) as the filter internally keeps track of things like top/bottom anchor and cookie so relative pages can be correlated. You can also try with the default comparator which should work in most cases, before you start debugging yours. If your use-case is different please try and post as many details as possible here. |
Beta Was this translation helpful? Give feedback.
-
Yes you need to find a way to keep a reference to the filter around and use the same for different pages. |
Beta Was this translation helpful? Give feedback.
-
I have an issue, where result set retrieved from cache is empty on pageNumber >0 using cache.entrySet(filter,compartor).
I am getting result using the method when pageNumber is 0. What could be the reason?. It gives the records when null / default comparator is passed. It always retrieves empty record on pageNumber > 0 .
My custom comparator is simple one on String using s1.compareTo(s2)
Beta Was this translation helpful? Give feedback.
All reactions