In a spring boot project with oracle we action our queries with spring data jpa @Query and declerative method queries like findAllByXAndByZ().We have a lots of web pages that most of them have sorting and filtering.for sorting and filtering and pagination we use spring data pagination with @Query.Then we show the data in web page form.Then,we need filtering on these filtered data!For example,user inputs s in search params (in url) then data will be filterd to words contains s. Can we use Redis cache with spring data redis for it?I mean in first step fetch data from oracle and cache it in redis,then in second step we action filtered in cache data?Or another way?
Asked
Active
Viewed 225 times
0
-
I don't see why not. Both QBE and Query are supported. See https://stackoverflow.com/questions/59884615/multi-field-querying-on-redis-using-redis-spring. And please post back with a more specific concern or problem if you find something not working. – LeoMurillo Jan 26 '20 at 08:42
-
Did you check https://rediSearch.io? (& https://github.com/RediSearch/spring-redisearch) – Guy Korland Jan 26 '20 at 11:54
-
thank you i will try it,generally i think we must be use Redis – Soheil Qalamkari Jan 27 '20 at 12:16
-
It's an extension to Redis – Guy Korland Jan 27 '20 at 15:53